Skip to content

Commit

Permalink
Regenerate package-lock.json
Browse files Browse the repository at this point in the history
Also, fixed the jest tests by locking the version of `cheerio`
cheeriojs/cheerio#2547 (comment)
  • Loading branch information
nikolas committed Oct 14, 2024
1 parent 6d58ebe commit 20ffaed
Show file tree
Hide file tree
Showing 4 changed files with 4,134 additions and 15,795 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
"presets": ["@babel/preset-env", "@babel/react"]
}
26 changes: 14 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
module.exports = {
'rootDir': 'src',
'testEnvironment': 'jsdom',
"moduleFileExtensions": [
"js",
"jsx"
rootDir: 'src',
moduleFileExtensions: [
'js',
'jsx'
],
"moduleDirectories": [
"node_modules",
"src"
moduleDirectories: [
'node_modules',
'src'
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|scss)$": "<rootDir>/__mocks__/styleMock.js"
}
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
'\\.(css|less|scss)$': '<rootDir>/__mocks__/styleMock.js'
},
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['node_modules/'],
testMatch: ['src/tests/*.test.js'],
};
Loading

0 comments on commit 20ffaed

Please sign in to comment.