Don't use globals
This commit is contained in:
@@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event';
|
||||
|
||||
import { Counter } from './counter';
|
||||
|
||||
import '@testing-library/jest-dom';
|
||||
import '@testing-library/jest-dom/vitest';
|
||||
|
||||
describe('Counter ', () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -4,6 +4,5 @@ import config from './vite.config';
|
||||
export default mergeConfig(config, {
|
||||
test: {
|
||||
environment: 'happy-dom',
|
||||
globals: true,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user