-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split build into standalone jobs (#2386)
- Loading branch information
1 parent
de3bedf
commit a6c419c
Showing
7 changed files
with
175 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["./**/*.test.ts"], | ||
"compilerOptions": { | ||
"types": ["node", "vitest/globals"], | ||
"resolveJsonModule": true, | ||
"allowSyntheticDefaultImports": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import { mswExports, customViteEnvironments } from '../support/alias' | ||
|
||
export default defineConfig({ | ||
test: { | ||
dir: './test/e2e', | ||
globals: true, | ||
environment: 'node', | ||
poolOptions: { | ||
threads: { | ||
/** | ||
* @note Run Node.js integration tests in sequence. | ||
* There's a test that involves building the library, | ||
* which results in the "lib" directory being deleted. | ||
* If any tests attempt to run during that window, | ||
* they will fail, unable to resolve the "msw" import alias. | ||
*/ | ||
singleThread: true, | ||
}, | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters