Skip to content

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjwest committed Apr 11, 2023
1 parent 406640f commit 532f751
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,6 @@
/tests/snippets/*
!/tests/snippets/config.json
!/tests/snippets/tsconfig.json
!/tests/snippets/jest.config.json
!/tests/snippets/vite.config.ts
!/tests/snippets/babel.config.js
6 changes: 6 additions & 0 deletions tests/snippets/babel.config.js
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
3 changes: 3 additions & 0 deletions tests/snippets/jest.config.json
@@ -0,0 +1,3 @@
{
"testMatch": ["**/*.(mjs|ts|cjs)"]
}
7 changes: 7 additions & 0 deletions tests/snippets/vite.config.ts
@@ -0,0 +1,7 @@
import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: [...configDefaults.include, '**/*.{mjs,cjs,ts}'],
},
});

0 comments on commit 532f751

Please sign in to comment.