Skip to content

Commit 99bafb1

Browse files
committed
build: use vitest
remove jest
1 parent ad23b9a commit 99bafb1

110 files changed

Lines changed: 7077 additions & 10291 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 6708 additions & 9817 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,13 @@
2222
"@commitlint/cli": "^20.4.1",
2323
"@commitlint/config-conventional": "^20.4.1",
2424
"@commitlint/prompt-cli": "^20.4.1",
25-
"@jest/globals": "^29.5.0",
26-
"@types/jest": "^29.5.12",
2725
"@types/node": "^22.15.0",
2826
"eslint": "^9.36.0",
2927
"husky": "^9.0.11",
30-
"jest": "^29.7.0",
3128
"lerna": "^9.0.3",
3229
"lint-staged": "^15.2.7",
3330
"prettier": "^3.3.2",
3431
"sort-package-json": "^2.10.0",
35-
"ts-jest": "^29.2.0",
3632
"tslib": "^2.3.0",
3733
"typescript": "^5.5.3",
3834
"vitest": "^4.0.18"

packages/airtable-mapper/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "./dist",
65
"target": "es2021",
7-
"declarationDir": "./dist",
86
"strictPropertyInitialization": false
97
},
108
"include": ["src/**/*.ts"]
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"baseUrl": ".",
5-
"types": ["node"],
6-
"paths": {}
7-
},
8-
"include": ["**/*.ts"],
9-
"exclude": []
2+
"extends": "../../tsconfig.lint.json",
3+
"compilerOptions": { "baseUrl": "." },
4+
"include": ["**/*.ts"]
105
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"extends": "../../tsconfig.jest.json",
2+
"extends": "../../tsconfig.spec.json",
33
"compilerOptions": {
4-
"baseUrl": ".",
5-
"paths": {}
4+
"baseUrl": "."
65
},
76
"include": ["src/**/*.spec.ts", "test/**/*.ts"]
87
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import CONFIG from '../../vitest.config.js'
2+
3+
export default CONFIG

packages/airtable-syncer/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "./dist",
6-
"declarationDir": "./dist",
75
"strictPropertyInitialization": false,
86
"experimentalDecorators": true,
97
"emitDecoratorMetadata": true,
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.lint.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"types": ["node"],
65
"experimentalDecorators": true,
7-
"emitDecoratorMetadata": true,
8-
"paths": {
9-
"@shiftcode/airtable-mapper": ["../airtable-mapper/src/index.ts"],
10-
"@shiftcode/inversify-logger": ["../inversify-logger/src/index.ts"],
11-
"@shiftcode/lambda-utilities/s3": ["../lambda-utilities/src/s3/index.ts"]
12-
}
6+
"emitDecoratorMetadata": true
137
},
14-
"include": ["**/*.ts"],
15-
"exclude": []
8+
"include": ["**/*.ts"]
169
}
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
{
2-
"extends": "../../tsconfig.jest.json",
2+
"extends": "../../tsconfig.spec.json",
33
"compilerOptions": {
44
"baseUrl": ".",
55
"experimentalDecorators": true,
6-
"emitDecoratorMetadata": true,
7-
"paths": {
8-
"@shiftcode/airtable-mapper": ["../airtable-mapper/src/index.ts"],
9-
"@shiftcode/inversify-logger": ["../inversify-logger/src/index.ts"],
10-
"@shiftcode/logger": ["../logger/src/public-api.ts"],
11-
"@shiftcode/lambda-utilities/s3": ["../lambda-utilities/src/s3/index.ts"],
12-
"@shiftcode/utilities": ["../utilities/src/index.ts"]
13-
}
6+
"emitDecoratorMetadata": true
147
},
158
"include": ["src/**/*.spec.ts", "test/**/*.ts"]
169
}
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
import path from 'node:path'
2-
31
import swc from 'unplugin-swc'
42
import { defineConfig } from 'vitest/config'
53

6-
import tsconfig from './tsconfig.spec.json'
7-
8-
const alias = Object.fromEntries(
9-
Object.entries(tsconfig.compilerOptions.paths).map(([key, [value]]) => [
10-
key.replace('/*', ''),
11-
path.resolve(import.meta.dirname, value.replace('/*', '')),
12-
]),
13-
)
4+
import CONFIG from '../../vitest.config.js'
145

156
export default defineConfig({
167
plugins: [
@@ -28,7 +19,7 @@ export default defineConfig({
2819
}),
2920
],
3021
test: {
31-
alias,
22+
...CONFIG.test,
3223
setupFiles: ['./test/vitest-setup.ts'],
3324
},
3425
})

0 commit comments

Comments
 (0)