Skip to content

Commit 6d7ec41

Browse files
committed
change jest
1 parent 00b2f08 commit 6d7ec41

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY . .
44
RUN npm ci
55

66
FROM base AS test
7-
CMD [ "npx", "jest", "--detectOpenHandles", "--coverage" ]
7+
CMD [ "npx", "jest", "--runInBand", "--coverage" ]
88

99
FROM base AS build
1010
RUN npm run build

__tests__/integration/notion.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@
4040
// })
4141
// })
4242
// });
43+
44+
describe('TEST', () => {
45+
describe('TEST', () => {
46+
test('TEST', async () => {
47+
expect(true).toEqual(true);
48+
});
49+
});
50+
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"postbuild": "npm run copy-files",
1010
"copy-files": "copyfiles -u 1 src/**/*.yml lib",
1111
"dev": "env-cmd -f ./src/config/dev.env nodemon ./src/index.ts",
12-
"test": "env-cmd -f ./src/config/test.env jest --detectOpenHandles",
12+
"test": "env-cmd -f ./src/config/test.env jest --runInBand",
1313
"dev-migrate:create": "migrate create --template-file ./src/migrations/utils/template.ts --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"",
1414
"dev-migrate:up": "migrate --migrations-dir=\"./src/migrations/db\" up --compiler=\"ts:./src/migrations/utils/ts-compiler.js\"",
1515
"dev-migrate:down": "migrate --migrations-dir=\"./src/migrations/db\" --compiler=\"ts:./src/migrations/utils/ts-compiler.js\" down",
@@ -91,4 +91,4 @@
9191
"ts-node": "^10.9.1",
9292
"typescript": "^4.9.3"
9393
}
94-
}
94+
}

0 commit comments

Comments
 (0)