-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor tests to use async methods and configurable packager (…
…default: yarn) (#578) * fix: change packager in tests * build: add helper script for cleaning tests cache * test: build tests locally in band yalc publish is resulting in race condition we need torefactor that * test: change packager for run provider * test: migrate jest config deprecated type * test: refactor tests to use async methods and configurable packager * test: remove runInBand option for ci * test: increase timouts for tests * test: increase timeout for kitchen-sink test * test: reintroduce runInBand * test: add timeouts to run executions with debug printouts in case of failure * style: fix formatting * test: refactor async run monitoring only to dedicated methods * style: fix formatting * test: fix package run command * test: add monitoring for all dependency installation commands * test: refactor async run monitoring and add retry option * test: remove debug printout * test: revert back timeout logic
- Loading branch information
1 parent
89d5e47
commit 754a70e
Showing
22 changed files
with
472 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.github | ||
node_modules | ||
dist-* | ||
tests | ||
tests/e2e/fixtures | ||
tests/__cache__ | ||
docs | ||
jest.config.* |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import type { InitialOptionsTsJest } from 'ts-jest/dist/types' | ||
import type { JestConfigWithTsJest } from 'ts-jest/dist/types' | ||
|
||
const config: InitialOptionsTsJest = { | ||
const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest', | ||
displayName: 'e2e', | ||
testMatch: ['**/e2e/**/*.test.ts'], | ||
globalSetup: './tests/e2e/__global__/setup.ts', | ||
} | ||
|
||
export default config |
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,12 @@ | ||
{ | ||
"rules": { | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} |
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 @@ | ||
export const getPackageManager = () => process.env.PACKAGE_MANAGER ?? 'yarn' |
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
Oops, something went wrong.