Skip to content

Commit

Permalink
only way i manage to get npm run coverage to work
Browse files Browse the repository at this point in the history
- was getting the exact same error as per jestjs/jest#15000
  • Loading branch information
ANGkeith committed Oct 8, 2024
1 parent d5bb5ae commit 4c600b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "npx eslint .",
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testTimeout 60000",
"test-except-dind": "npm run test -- --testPathIgnorePatterns=\"/dind.*/|/node_modules/|/.gitlab-ci-local/\"",
"coverage": "FORCE_COLOR=1 npm run test -- --coverage --verbose",
"coverage": "npm run build && FORCE_COLOR=1 npm run test -- --coverage --verbose",
"start": "NODE_OPTIONS='--loader ts-node/esm' ts-node --log-error src/index.ts --cwd examples/docker-compose-nodejs",
"dev": "touch .gitlab-ci.yml && NODE_OPTIONS='--loader ts-node/esm' nodemon -e ts --watch src --watch .gitlab-ci.yml --exec ts-node src/index.ts",
"fetch-and-patch-schema": "curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf | jq 'del(.. | .pattern?)' > src/schema/schema.json"
Expand Down Expand Up @@ -144,7 +144,8 @@
{
"useESM": true
}
]
],
"^.+\\.jsx?$": "babel-jest"
},
"preset": "ts-jest",
"testMatch": [
Expand Down

0 comments on commit 4c600b2

Please sign in to comment.