Skip to content

Commit

Permalink
Add jest
Browse files Browse the repository at this point in the history
  • Loading branch information
sikleber committed Apr 21, 2024
1 parent 4caf0fc commit 9e8b446
Show file tree
Hide file tree
Showing 6 changed files with 7,644 additions and 4,098 deletions.
24 changes: 24 additions & 0 deletions frontend/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

/** @type {import('jest').Config} */
const config = {
collectCoverage: true,
coverageDirectory: "coverage",
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist/',
],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/src/__mocks__/fileMock.ts',
'\\.(css|less)$': '<rootDir>/src/__mocks__/styleMock.ts',
},
resolver: undefined,
rootDir: "./",
testEnvironment: "jsdom",
};

module.exports = config;
Loading

0 comments on commit 9e8b446

Please sign in to comment.