Skip to content

Commit

Permalink
Vitest (#632)
Browse files Browse the repository at this point in the history
Switching from jest to vitest. This _might_ make the move to
[first-class-ESM](#608) easier,
since there'll be less dependency hell to worry about (jest, ts-jest,
...)

---------

Co-authored-by: Misha Kaletsky <[email protected]>
  • Loading branch information
mmkal and mmkal authored Nov 6, 2023
1 parent fc68dea commit d5cf0c3
Show file tree
Hide file tree
Showing 17 changed files with 7,684 additions and 10,802 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ module.exports = {
project: ['./tsconfig.json'],
extraFileExtensions: ['.md', '.mjs'],
},
plugins: ['@typescript-eslint/eslint-plugin', 'prettier', 'unicorn', 'jest', 'import', 'codegen'],
env: { 'jest/globals': true },
plugins: ['@typescript-eslint/eslint-plugin', 'prettier', 'unicorn', 'import', 'codegen'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:unicorn/recommended',
'plugin:import/typescript',
'plugin:jest/recommended',
'xo',
'xo-typescript',
],
Expand All @@ -32,8 +30,6 @@ module.exports = {

'no-await-in-loop': 'off',

'jest/expect-expect': ['error', { assertFunctionNames: ['expect', 'expectTypeOf', 'verify'] }],

'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': [
'warn',
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ examples/*/db.sqlite
# to make the examples realistic, they `import {} from 'umzug'`. So there's a passthrough script to the compiled library in examples/node_modules/umzug/index.js
!examples/node_modules/umzug/*
examples/*/node_modules/*
ignoreme
1 change: 0 additions & 1 deletion examples/0.vanilla/ignoreme/uzmug.json

This file was deleted.

2 changes: 1 addition & 1 deletion examples/0.vanilla/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports.migrator = new Umzug({
glob: 'migrations/*.js',
},
context: { directory: __dirname + '/ignoreme' },
storage: new JSONStorage({ path: 'ignoreme/uzmug.json' }),
storage: new JSONStorage({ path: __dirname + '/ignoreme/storage.json' }),
logger: console,
});

Expand Down
Loading

0 comments on commit d5cf0c3

Please sign in to comment.