Skip to content

Commit

Permalink
added css parsing configs in jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rafidoth committed Dec 16, 2024
1 parent cbb662d commit 8e66450
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __mocks__/styleMock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// __mocks__/styleMock.js
module.exports = {};
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default {
'\\.svg\\?react$': '<rootDir>/scripts/__mocks__/fileMock.js',
'\\.svg$': '<rootDir>/scripts/__mocks__/fileMock.js',
'^@pdfme/generator$': '<rootDir>/scripts/__mocks__/@pdfme/generator.ts',
'\\.module\\.css$': 'identity-obj-proxy',
'\\.(css|less|scss|sass)$': '<rootDir>/__mocks__/styleMock.ts',

Check failure on line 46 in jest.config.js

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Delete `·`
},
moduleFileExtensions: [
'web.js',
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e66450

Please sign in to comment.