인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

형욱박님의 프로필 이미지
형욱박

작성한 질문수

따라하며 배우는 도커와 CI환경 [2023.11 업데이트]

Travis CI의 AWS접근을 위한 API 생성

travis ci 배포 시 에러 발생

작성

·

334

0

안녕하세요 강의 중 

travis ci 배포 후 에러가 발생합니다. 

● Test suite failed to run
296 /usr/src/app/src/App.test.js:1
297 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import React from 'react';
298 ^^^^^^
300 SyntaxError: Cannot use import statement outside a module
302 at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
303 at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:579:25)
305Test Suites: 1 failed, 1 total
306Tests: 0 total
307Snapshots: 0 total
308Time: 1.098s
309Ran all test suites.
310npm ERR! code ELIFECYCLE
311npm ERR! errno 1
312npm ERR! docker-react-app@0.1.0 test: `react-scripts test "--" "coverage"`
313npm ERR! Exit status 1
314npm ERR!
315npm ERR! Failed at the docker-react-app@0.1.0 test script.
316npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
318npm ERR! A complete log of this run can be found in:
319npm ERR! /root/.npm/_logs/2020-10-20T10_48_56_429Z-debug.log
320The command "docker run -e CI=true joseph/docker-react-app npm run test -- -- coverage" exited with 1.
323Done. Your build exited with 1.

답변 1

0

John Ahn님의 프로필 이미지
John Ahn
지식공유자

리액트 코드 부분에 문제가 있는것 같은데요 ? 
그냥 리액트 실행 할 때도 에러가 나지 않나요 ~ ???

형욱박님의 프로필 이미지
형욱박

작성한 질문수

질문하기