-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* do large find/replaces for switching to vitest * fix type errors * fix more types * add import * fix native modules not working with vitest * add more imports * move redis mock * Revert "move redis mock" This reverts commit f80e122. * update types * fix type error * set up redis mock correctly * change hook to isolate tests better * make tests that touch the db more isolated: accountrecovery and user specs * make tests that touch the db more isolated: room and roommanager specs * update coverage excludes * finish making all tests that touch the db isolated * remove jest config * fix test isolation again? * fix type errors * fix lints * remove jest and babel * fix ott-client linting * fix jest related type errors in ott-vis and ott-vis-datasource
- Loading branch information
Showing
36 changed files
with
431 additions
and
956 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"browser": true | ||
}, | ||
"plugins": ["jest"], | ||
"plugins": ["vitest"], | ||
"rules": { | ||
"no-console": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
|
||
"jest/consistent-test-it": ["error", { "fn": "it" }], | ||
"jest/expect-expect": "warn", | ||
"jest/no-duplicate-hooks": "error", | ||
"jest/no-focused-tests": "error", | ||
"jest/no-identical-title": "error", | ||
"jest/no-if": "error", | ||
"jest/no-expect-resolves": "error", | ||
"jest/no-export": "error", | ||
"jest/no-standalone-expect": "error", | ||
"jest/no-truthy-falsy": "error", | ||
"jest/prefer-spy-on": "error", | ||
"jest/require-top-level-describe": "warn" | ||
"vitest/consistent-test-it": ["error", { "fn": "it" }], | ||
"vitest/expect-expect": "warn", | ||
"vitest/no-conditional-in-test": "error", | ||
"vitest/no-duplicate-hooks": "error", | ||
"vitest/no-focused-tests": "error", | ||
"vitest/no-identical-title": "error", | ||
"vitest/prefer-spy-on": "error", | ||
"vitest/require-top-level-describe": "warn" | ||
} | ||
} |
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,3 +1,7 @@ | ||
{ | ||
"extends": "./.config/tsconfig.json" | ||
"extends": "./.config/tsconfig.json", | ||
"compilerOptions": { | ||
"strict": true, | ||
"typeRoots": ["../../node_modules/@types"] | ||
} | ||
} |
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,6 +1,7 @@ | ||
{ | ||
"extends": "./.config/tsconfig.json", | ||
"compilerOptions": { | ||
"strict": true | ||
"strict": true, | ||
"typeRoots": ["../../node_modules/@types"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,26 +1,21 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"browser": true | ||
}, | ||
"plugins": ["jest"], | ||
"plugins": ["vitest"], | ||
"rules": { | ||
"no-console": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
|
||
"jest/consistent-test-it": ["error", { "fn": "it" }], | ||
"jest/expect-expect": "warn", | ||
"jest/no-duplicate-hooks": "error", | ||
"jest/no-focused-tests": "error", | ||
"jest/no-identical-title": "error", | ||
"jest/no-if": "error", | ||
"jest/no-expect-resolves": "error", | ||
"jest/no-export": "error", | ||
"jest/no-standalone-expect": "error", | ||
"jest/no-truthy-falsy": "error", | ||
"jest/prefer-spy-on": "error", | ||
"jest/require-top-level-describe": "warn" | ||
"vitest/consistent-test-it": ["error", { "fn": "it" }], | ||
"vitest/expect-expect": "warn", | ||
"vitest/no-conditional-in-test": "error", | ||
"vitest/no-duplicate-hooks": "error", | ||
"vitest/no-focused-tests": "error", | ||
"vitest/no-identical-title": "error", | ||
"vitest/no-standalone-expect": "error", | ||
"vitest/prefer-spy-on": "error", | ||
"vitest/require-top-level-describe": "warn" | ||
} | ||
} |
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
Oops, something went wrong.