mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 18:30:36 +03:00
test if setup file messes up ci coverage
This commit is contained in:
@@ -10,6 +10,7 @@ module.exports = defineConfig({
|
|||||||
include: ['test/**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
include: ['test/**/*.test.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||||
coverage: {
|
coverage: {
|
||||||
reportsDirectory: './.coverage/unit',
|
reportsDirectory: './.coverage/unit',
|
||||||
|
exclude: ['**/vitest.setup.js'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
/*
|
|
||||||
import matchers from '@testing-library/jest-dom/matchers';
|
import matchers from '@testing-library/jest-dom/matchers';
|
||||||
import { expect } from 'vitest';
|
import { expect } from 'vitest';
|
||||||
|
|
||||||
expect.extend(matchers);
|
expect.extend(matchers);
|
||||||
*/
|
|
||||||
console.log('setup');
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ import { OverlayScrollbarsComponent } from '~/overlayscrollbars-react';
|
|||||||
test('renders learn react link', () => {
|
test('renders learn react link', () => {
|
||||||
render(<OverlayScrollbarsComponent msg="hi" />);
|
render(<OverlayScrollbarsComponent msg="hi" />);
|
||||||
const linkElement = screen.getByText(/learn react/i);
|
const linkElement = screen.getByText(/learn react/i);
|
||||||
// expect(linkElement).toBeInTheDocument();
|
expect(linkElement).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user