Skip to content

Commit 5526880

Browse files
committed
Fixing test
1 parent a0884c0 commit 5526880

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

jest.config.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,7 @@
33
/** @type {import('jest').Config} */
44
const jestConfig = {
55
clearMocks: true,
6-
collectCoverage: true,
7-
collectCoverageFrom: ['./src/**'],
8-
coverageDirectory: './coverage',
9-
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
10-
coverageReporters: ['json-summary', 'text', 'lcov'],
11-
// Uncomment the below lines if you would like to enforce a coverage threshold
12-
// for your action. This will fail the build if the coverage is below the
13-
// specified thresholds.
14-
// coverageThreshold: {
15-
// global: {
16-
// branches: 100,
17-
// functions: 100,
18-
// lines: 100,
19-
// statements: 100
20-
// }
21-
// },
6+
collectCoverage: false,
227
moduleFileExtensions: ['js'],
238
reporters: ['default'],
249
testEnvironment: 'node',

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"release:major": "npm run version:major && npm publish --access public && git push --follow-tags",
1919
"release:minor": "npm run version:minor && npm publish --access public && git push --follow-tags",
2020
"release:patch": "npm run version:patch && npm publish --access public && git push --follow-tags",
21-
"test:coverage": "jest --coverage",
22-
"test:watch": "jest --watch",
23-
"test": "jest",
21+
"test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
2422
"version:major": "npm version major",
2523
"version:minor": "npm version minor",
2624
"version:patch": "npm version patch"

0 commit comments

Comments
 (0)