인프런 커뮤니티 질문&답변
npx cross-env NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest 터미널 에러
작성
·
192
1
명령어를 아래처럼 치면 이렇게 나와요. 어디가 문제일지 ..
npx cross-env NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest
터미널내용:
No tests found, exiting with code 1
Run with --passWithNoTests to exit with code 0
In C:\Users\hyesu\Desktop\works\jest-test
3 files checked.
testMatch: /__tests__//*.[jt]s?(x), **/?(*.)+(spec|test).[tj]s?(x) - 0 matches
testPathIgnorePatterns: \\node_modules\\ - 3 matches
testRegex: - 0 matches
Pattern: - 0 matches
toBe.js
export default function sum(x, y) { return x + y; }
package.json
{
"name": "jest-test",
"version": "1.0.0",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"cross-env": "^7.0.3",
"jest": "^29.7.0"
}
}
퀴즈
강의에서 테스트를 '반드시' 할 필요는 없다고 언급된 경우가 아닌 것은 무엇일까요?
프로젝트 계획이 아주 빈번하게 변경될 때
프로젝트의 유지보수 참여가 예정되어 있지 않을 때
코드 수정 시 다른 부분의 오류 발생 가능성이 높을 때
SI 프로젝트라 구축 완료 후 인수인계만 할 때





