Attempt #6 linting

This commit is contained in:
Hu90mt990 2022-11-08 11:28:38 +11:00
parent e6b7e79da9
commit b1db52fed6
2 changed files with 11 additions and 11 deletions

View File

@ -1,11 +1,11 @@
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
})),
});
writable: true,
value: jest.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
})),
});

View File

@ -14,7 +14,7 @@ const customJestConfig = {
// if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work
moduleDirectories: ['node_modules', '<rootDir>/'],
testEnvironment: 'jest-environment-jsdom',
transformIgnorePatterns: ["node_modules/(?!workoutbuddy)/"]
transformIgnorePatterns: ['node_modules/(?!workoutbuddy)/'],
};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async