mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-28 04:08:05 +00:00
better way to tell jest to use custom env
This commit is contained in:
committed by
David Lechner
parent
02118daa5a
commit
4299b36e6c
Vendored
+1
-3
@@ -18,11 +18,9 @@
|
||||
"name": "Debug Tests",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/craco",
|
||||
"env": { "CI": "true" },
|
||||
"args": ["test", "--runInBand", "--no-cache", "--env=./test/env.js"],
|
||||
"args": ["scripts/test.js"],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"protocol": "inspector",
|
||||
"console": "integratedTerminal",
|
||||
"internalConsoleOptions": "neverOpen"
|
||||
},
|
||||
|
||||
+2
-2
@@ -119,7 +119,7 @@
|
||||
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
||||
"start": "node scripts/start.js",
|
||||
"build": "node scripts/build.js",
|
||||
"test": "node scripts/test.js --env=./test/env.js",
|
||||
"test": "node scripts/test.js",
|
||||
"coverage": "yarn test --coverage --watchAll=false",
|
||||
"coverage:html": "yarn coverage --coverageReporters html",
|
||||
"lint": "tsc --noEmit && eslint \"*/**/*.{js,ts,tsx}\" --quiet --fix"
|
||||
@@ -178,7 +178,7 @@
|
||||
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
||||
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
||||
],
|
||||
"testEnvironment": "jsdom",
|
||||
"testEnvironment": "./test/env",
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
|
||||
Reference in New Issue
Block a user