안녕하세요 강의 중
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';
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
310npm ERR! code ELIFECYCLE
312npm ERR! docker-react-app@0.1.0 test: `react-scripts test "--" "coverage"`
313npm ERR! Exit status 1
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.