Skip to content

Commit

Permalink
testing madness
Browse files Browse the repository at this point in the history
  • Loading branch information
emeeks committed Apr 9, 2024
1 parent 3a55f65 commit 81ab20d
Show file tree
Hide file tree
Showing 10 changed files with 2,674 additions and 2,487 deletions.
10 changes: 5 additions & 5 deletions config/jest/cssTransform.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';
"use strict"

// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/en/webpack.html

module.exports = {
process() {
return 'module.exports = {};';
return "module.exports = {};"
},
getCacheKey() {
// The output is always the same.
return 'cssTransform';
},
};
return "cssTransform"
}
}
10 changes: 5 additions & 5 deletions config/jest/fileTransform.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';
"use strict"

const path = require('path');
const path = require("path")

// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html

module.exports = {
process(src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
},
};
return `module.exports = ${JSON.stringify(path.basename(filename))};`
}
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
verbose: true,
resetMocks: true,
collectCoverage: true,
setupFilesAfterEnv: ["<rootDir>/src/setupTests.js"],
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
testMatch: [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{ts,js,jsx,mjs}"
Expand Down
Loading

0 comments on commit 81ab20d

Please sign in to comment.