Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 8eb61df

Browse files
committed
test: run jest sequentially
1 parent add1019 commit 8eb61df

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ coverage
1111
# Build Config
1212
tsconfig.json
1313
rollup.config.js
14+
jest.config.js
1415
.gitignore
1516
.babelrc
1617
.travis.yml

jest.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
collectCoverage: true,
3+
maxWorkers: '50%',
4+
transform: {
5+
'.(ts)': 'ts-jest',
6+
},
7+
};

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"dev": "npx esbuild src/browser.ts --bundle --watch --sourcemap --outfile=dist/lucia.js",
1111
"build": "npx del-cli dist/ && npx rollup -c",
12-
"test": "jest --coverage --silent",
12+
"test": "jest --silent --runInBand",
1313
"cleanup": "prettier --write src --parser typescript",
1414
"prepublishOnly": "npm run build"
1515
},
@@ -63,10 +63,5 @@
6363
"rollup-plugin-typescript2": "^0.30.0",
6464
"ts-jest": "^26.4.2",
6565
"typescript": "^4.1.2"
66-
},
67-
"jest": {
68-
"transform": {
69-
".(ts)": "ts-jest"
70-
}
7166
}
7267
}

0 commit comments

Comments
 (0)