을 발견하고는 다음에 가깝다 뭔가를 반환비주얼 스튜디오의 코드를 통해 농담을 실행, 어떤 이유로
running command> jest --no-cache No tests found In c:\Users\gusta\Documents\ts 992 files checked. testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - 121 matches testPathIgnorePatterns: \\node_modules\\ - 7 matches Pattern: "" - 0 matches
을 그러나에서 테스트를 실행할 때 명령 줄, 그것은 잘 테스트를 해결합니다.
C:\Users\gusta\Documents\ts>jest --no-cache PASS src\__test__\some-component.test.jsx (6.812s)
이 일이 모두 VSCode에서 디버깅하려고뿐만 아니라 작업을 실행 단순히 때 때. 내 tasks.json은 다음과 같습니다
{ "version": "0.1.0", "tasks": [ { "taskName": "jest", "command": "jest", "args": [ "--no-cache" ], "isShellCommand": true, "echoCommand": true, "showOutput": "always" } ] }
내 package.json : { "name": "badgeexplorerts", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "android": "yarn run haul start -- --platform android", "test": "jest" }, "dependencies": { "@types/jest": "^19.2.3", "react": "~15.4.1", "react-native": "0.42.3", "ts-loader": "^2.0.3", "typescript": "^2.2.2" }, "devDependencies": { "@types/react": "^15.0.24", "@types/react-native": "^0.43.12", "babel-jest": "^20.0.0", "babel-loader": "^7.0.0", "babel-preset-es2015": "^6.24.1", "haul-cli": "^0.5.0", "jest": "^20.0.0", "react-test-renderer": "~15.4.1", "ts-jest": "^20.0.2" }, "jest": { "preset": "react-native" } }
이 사람이 무슨 일이 일어나고 있는지 알고 있나요? VSCode의 내 버전은 1.12.1입니다.