test if setup file messes up ci coverage

This commit is contained in:
Rene Haas
2022-10-21 15:40:55 +02:00
parent 2bab95c83d
commit b976eaa463
3 changed files with 2 additions and 4 deletions
+1
View File
@@ -10,6 +10,7 @@ module.exports = defineConfig({
include: ['test/**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
coverage: {
reportsDirectory: './.coverage/unit',
exclude: ['**/vitest.setup.js'],
},
},
});
-3
View File
@@ -1,7 +1,4 @@
/*
import matchers from '@testing-library/jest-dom/matchers';
import { expect } from 'vitest';
expect.extend(matchers);
*/
console.log('setup');
@@ -5,5 +5,5 @@ import { OverlayScrollbarsComponent } from '~/overlayscrollbars-react';
test('renders learn react link', () => {
render(<OverlayScrollbarsComponent msg="hi" />);
const linkElement = screen.getByText(/learn react/i);
// expect(linkElement).toBeInTheDocument();
expect(linkElement).toBeInTheDocument();
});