-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replaces Jest as a test runner with Vitest. Jest has too many issues resolving modules and running TypeScript. The tests were renamed to match Vitest’s default test pattern. The ESLint configuration was adjusted a bit to match the new setup as well.
- Loading branch information
1 parent
d336ac2
commit 0868ca5
Showing
12 changed files
with
1,092 additions
and
1,762 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 |
---|---|---|
@@ -1,7 +1,25 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['transloadit', 'prettier'], | ||
parserOptions: { | ||
ecmaVersion: 11, | ||
requireConfigFile: false, | ||
}, | ||
overrides: [ | ||
{ | ||
files: 'test/**', | ||
globals: { | ||
afterAll: true, | ||
afterEach: true, | ||
beforeAll: true, | ||
beforeEach: true, | ||
describe: true, | ||
it: true, | ||
vi: true, | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
], | ||
} |
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
This file was deleted.
Oops, something went wrong.
File renamed without changes
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
4 changes: 1 addition & 3 deletions
4
test/unit/__tests__/mock-http.js → test/unit/mock-http.test.js
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,10 @@ | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
coverage: { | ||
include: 'src', | ||
}, | ||
globals: true, | ||
}, | ||
}) |
Oops, something went wrong.