mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
test: Reduce integration test memory usage
This commit is contained in:
parent
334364918f
commit
80fa81a556
@ -14,13 +14,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
setupFilesAfterEnv: [ 'jest-rdf', '<rootDir>/test/util/SetupTests.ts' ],
|
setupFilesAfterEnv: [ 'jest-rdf', '<rootDir>/test/util/SetupTests.ts' ],
|
||||||
collectCoverage: true,
|
collectCoverage: false,
|
||||||
coverageReporters: [ 'text', 'lcov' ],
|
|
||||||
coveragePathIgnorePatterns: [
|
|
||||||
'/dist/',
|
|
||||||
'/node_modules/',
|
|
||||||
'/test/',
|
|
||||||
],
|
|
||||||
// See https://github.com/matthieubosquet/ts-dpop/issues/13
|
// See https://github.com/matthieubosquet/ts-dpop/issues/13
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
|
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
|
||||||
|
@ -2,6 +2,13 @@ const jestConfig = require('./jest.config');
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...jestConfig,
|
...jestConfig,
|
||||||
|
collectCoverage: true,
|
||||||
|
coverageReporters: [ 'text', 'lcov' ],
|
||||||
|
coveragePathIgnorePatterns: [
|
||||||
|
'/dist/',
|
||||||
|
'/node_modules/',
|
||||||
|
'/test/',
|
||||||
|
],
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
'./src': {
|
'./src': {
|
||||||
branches: 100,
|
branches: 100,
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
"test": "npm run test:ts && npm run jest",
|
"test": "npm run test:ts && npm run jest",
|
||||||
"test:deploy": "test/deploy/validate-configs.sh",
|
"test:deploy": "test/deploy/validate-configs.sh",
|
||||||
"test:ts": "tsc -p test --noEmit",
|
"test:ts": "tsc -p test --noEmit",
|
||||||
"test:integration": "jest --coverageReporters text-summary -- test/integration",
|
"test:integration": "node --expose-gc --no-compilation-cache ./node_modules/jest/bin/jest.js -- test/integration",
|
||||||
"test:unit": "jest --config=./jest.coverage.config.js test/unit",
|
"test:unit": "jest --config=./jest.coverage.config.js test/unit",
|
||||||
"test:watch": "jest --coverageReporters none --watch test/unit",
|
"test:watch": "jest --coverageReporters none --watch test/unit",
|
||||||
"validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/default.json -f > /dev/null",
|
"validate": "componentsjs-compile-config urn:solid-server:default:Initializer -c config/default.json -f > /dev/null",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user