Skip to content

Commit 46445ee

Browse files
committed
chore(postgrest): tstyche config
1 parent 7477869 commit 46445ee

File tree

8 files changed

+57
-40
lines changed

8 files changed

+57
-40
lines changed

.cursor/mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"mcpServers": {}
3-
}
3+
}

nx.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,13 @@
7878
"inputs": ["production", "^production", "buildConfig"],
7979
"dependsOn": ["^build:main"],
8080
"cache": true,
81-
"outputs": [
82-
"{projectRoot}/dist/main",
83-
"{projectRoot}/dist/tsconfig.tsbuildinfo"
84-
]
81+
"outputs": ["{projectRoot}/dist/main", "{projectRoot}/dist/tsconfig.tsbuildinfo"]
8582
},
8683
"build:module": {
8784
"inputs": ["production", "^production", "buildConfig"],
8885
"dependsOn": ["^build:module"],
8986
"cache": true,
90-
"outputs": [
91-
"{projectRoot}/dist/module",
92-
"{projectRoot}/dist/tsconfig.module.tsbuildinfo"
93-
]
87+
"outputs": ["{projectRoot}/dist/module", "{projectRoot}/dist/tsconfig.module.tsbuildinfo"]
9488
},
9589
"build:umd": {
9690
"inputs": ["production", "^production", "buildConfig"],

package-lock.json

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

packages/core/functions-js/jest.config.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ import type { Config } from '@jest/types'
33
const config: Config.InitialOptions = {
44
preset: 'ts-jest',
55
transform: {
6-
'^.+\\.ts?$': 'ts-jest',
6+
'^.+\\.ts?$': [
7+
'ts-jest',
8+
{
9+
tsconfig: {
10+
// Override tsconfig for tests without creating a separate file
11+
composite: false,
12+
outDir: '$$ts-jest$$', // Use ts-jest's internal temp directory
13+
rootDir: '.',
14+
// Inherit other settings from main tsconfig.json
15+
},
16+
},
17+
],
718
},
819
moduleFileExtensions: ['ts', 'js', 'cjs', 'json', 'node'],
920
setupFilesAfterEnv: ['./test/utils/jest-custom-reporter.ts'],
@@ -12,8 +23,6 @@ const config: Config.InitialOptions = {
1223
...(process.env.CI && { retryTimes: 3 }),
1324
// Run tests sequentially to prevent Docker resource conflicts
1425
maxWorkers: 1,
15-
// Force exit after tests complete to avoid hanging on unclosed handles
16-
forceExit: true,
1726
collectCoverageFrom: [
1827
'!**/node_modules/**',
1928
'src/**/*.{ts,tsx}',
@@ -30,10 +39,5 @@ const config: Config.InitialOptions = {
3039
statements: 0,
3140
},
3241
},
33-
globals: {
34-
'ts-jest': {
35-
tsconfig: 'tsconfig.test.json',
36-
},
37-
},
3842
}
3943
export default config

packages/core/functions-js/tsconfig.test.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"include": ["src", "test"],
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationMap": true,
6+
"module": "ESNext",
7+
"outDir": "dist/cjs",
8+
"rootDir": ".",
9+
"sourceMap": true,
10+
"target": "ES2017",
11+
12+
"strict": true,
13+
14+
"esModuleInterop": true,
15+
"moduleResolution": "Node",
16+
17+
"forceConsistentCasingInFileNames": true,
18+
"stripInternal": true,
19+
"noImplicitOverride": false,
20+
"isolatedModules": false
21+
}
22+
}
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"$schema": "https://tstyche.org/schemas/config.json",
3-
"testFileMatch": ["./test/**/*.test.ts", "./test/**/*.test-d.ts"],
4-
"checkSourceFiles": false,
5-
"checkSuppressedErrors": true,
6-
"tsconfig": "./tsconfig.test.json"
2+
"tsconfig": "tsconfig.tstyche.json",
3+
"testFileMatch": ["**/*.test-d.ts"]
74
}

packages/core/supabase-js/tsconfig.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,22 @@
1717
"allowSyntheticDefaultImports": true,
1818
"forceConsistentCasingInFileNames": true,
1919
"isolatedModules": false
20-
}
20+
},
21+
"references": [
22+
{
23+
"path": "../storage-js"
24+
},
25+
{
26+
"path": "../realtime-js"
27+
},
28+
{
29+
"path": "../postgrest-js"
30+
},
31+
{
32+
"path": "../functions-js"
33+
},
34+
{
35+
"path": "../auth-js"
36+
}
37+
]
2138
}

0 commit comments

Comments
 (0)