Skip to content

Commit

Permalink
set up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 21, 2024
1 parent f3ed535 commit e93e2bf
Show file tree
Hide file tree
Showing 9 changed files with 1,055 additions and 18 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,27 @@ module.exports = {
__DEV__: true,
__SSR__: true,
},

overrides: [
{
files: ['tests/**/*'],
extends: ['plugin:vitest/recommended'],
rules: {
'import/no-extraneous-dependencies': [
2,
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
'vitest/prefer-comparison-matcher': 2,
'vitest/prefer-equality-matcher': 2,
'vitest/prefer-hooks-in-order': 2,
'vitest/prefer-hooks-on-top': 2,
'vitest/prefer-to-contain': 2,
'vitest/prefer-to-have-length': 2,
},
},
],
}
Loading

0 comments on commit e93e2bf

Please sign in to comment.