Skip to content

Commit 43c5a36

Browse files
committed
test
1 parent 6ef2244 commit 43c5a36

File tree

9 files changed

+10
-17
lines changed

9 files changed

+10
-17
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"start:debug": "nest start --debug --watch",
1717
"start:prod": "node dist/main",
1818
"lint": "eslint \"{src,apps,libs,test,prisma}/**/*.ts\"",
19-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --projects src",
20-
"test:watch": "NODE_OPTIONS='--experimental-vm-modules' jest --projects src --watch",
21-
"test:cov": "NODE_OPTIONS='--experimental-vm-modules' jest --projects src --coverage",
22-
"test:debug": "node --experimental-vm-modules --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --projects src --runInBand",
23-
"test:e2e": "NODE_OPTIONS='--experimental-vm-modules' jest --projects test",
24-
"test:acceptance": "NODE_OPTIONS='--experimental-vm-modules' jest --projects test_acceptance",
25-
"test:ldap": "NODE_OPTIONS='--experimental-vm-modules' jest --projects test_ldap"
19+
"test": "jest --projects src",
20+
"test:watch": "jest --projects src --watch",
21+
"test:cov": "jest --projects src --coverage",
22+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --projects src --runInBand",
23+
"test:e2e": "jest --projects test",
24+
"test:acceptance": "jest --projects test_acceptance",
25+
"test:ldap": "jest --projects test_ldap"
2626
},
2727
"engines": {
2828
"node": ">=20"

prisma/jest.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ module.exports = {
33
preset: 'ts-jest',
44
testEnvironment: 'node',
55
setupFilesAfterEnv: ['<rootDir>/test/client.mock.ts'],
6-
extensionsToTreatAsEsm: ['.ts'],
7-
transformIgnorePatterns: ['node_modules/(?!(pixelmatch)/)'],
86
};

prisma/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"private": true,
77
"license": "Apache-2.0",
88
"scripts": {
9-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
10-
"postinstall": "prisma generate"
9+
"test": "jest"
1110
},
1211
"dependencies": {
1312
"@prisma/client": "^6.18.0",

prisma/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "NodeNext",
3+
"module": "commonjs",
44
"declaration": true,
55
"removeComments": true,
66
"emitDecoratorMetadata": true,

src/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = async () => {
44
displayName: 'Unit Tests',
55
roots: ['./'],
66
moduleFileExtensions: ['js', 'json', 'ts'],
7-
extensionsToTreatAsEsm: ['.ts'],
87
transform: {
98
'^.+\\.(t|j)s$': 'ts-jest',
109
},

test/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = async () => {
77
roots: ['./'],
88
testTimeout: 30000,
99
testRegex: '.e2e-spec.ts$',
10-
extensionsToTreatAsEsm: ['.ts'],
1110
transform: {
1211
...createDefaultPreset().transform,
1312
},

test_acceptance/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = async () => {
66
testTimeout: 30000,
77
testRegex: '.spec.ts$',
88
moduleFileExtensions: ['js', 'json', 'ts'],
9-
extensionsToTreatAsEsm: ['.ts'],
109
transform: {
1110
'^.+\\.(t|j)s$': 'ts-jest',
1211
},

test_ldap/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = async () => {
66
testTimeout: 30000,
77
testRegex: '.spec.ts$',
88
moduleFileExtensions: ['js', 'json', 'ts'],
9-
extensionsToTreatAsEsm: ['.ts'],
109
transform: {
1110
'^.+\\.(t|j)s$': 'ts-jest',
1211
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "NodeNext",
3+
"module": "commonjs",
44
"declaration": true,
55
"removeComments": true,
66
"emitDecoratorMetadata": true,

0 commit comments

Comments
 (0)