Skip to content

Commit

Permalink
Move style mock under mocks/
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Mar 2, 2024
1 parent 8d110a9 commit e830c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ module.exports = {
rootDir: '../',
roots: ['<rootDir>'],
coverageDirectory: './coverage',
// we mock any style-related files and return an empty module. This is needed due to errors
// when jest tries to interpret these types of files.
moduleNameMapper: {
'\\.(css|less|scss|sass)$': '<rootDir>/test/style_stub.js',
'\\.(css|less|scss|sass)$': '<rootDir>/test/mocks/style_mock.ts',
},
testEnvironment: 'jest-environment-jsdom',
coverageReporters: ['lcov', 'text', 'cobertura'],
Expand Down
2 changes: 1 addition & 1 deletion test/style_stub.js → test/mocks/style_mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* SPDX-License-Identifier: Apache-2.0
*/

module.exports = {};
export default {};

0 comments on commit e830c81

Please sign in to comment.