Skip to content

Commit

Permalink
build: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Mar 18, 2022
1 parent 517f7cc commit 84d56c9
Show file tree
Hide file tree
Showing 5 changed files with 8,246 additions and 10,859 deletions.
2 changes: 1 addition & 1 deletion gatsby-node.js
Expand Up @@ -21,7 +21,7 @@ exports.onCreateWebpackConfig = ({ actions, stage, loaders }) => {
}
});

if (stage === "build-html") {
if (stage === "build-html" || stage === "develop-html") {
actions.setWebpackConfig({
module: {
rules: [
Expand Down
8 changes: 7 additions & 1 deletion jest.config.js
Expand Up @@ -10,7 +10,13 @@ module.exports = {
// handling mocking static file imports
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss)$": `identity-obj-proxy`,
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": `<rootDir>/__mocks__/file-mock.js`,
"^gatsby-page-utils/(.*)$": `gatsby-page-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
"^gatsby-core-utils/(.*)$": `gatsby-core-utils/dist/$1`, // Workaround for https://github.com/facebook/jest/issues/9771
"^gatsby-plugin-utils/(.*)$": [
`gatsby-plugin-utils/dist/$1`,
`gatsby-plugin-utils/$1`
] // Workaround for https://github.com/facebook/jest/issues/9771
},
testMatch: [
"**/__tests__/**/*.[jt]s?(x)",
Expand Down

0 comments on commit 84d56c9

Please sign in to comment.