mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
chore: fix tests
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
import "./disqus-react";
|
||||
import "./next-link";
|
||||
import "./next-image";
|
||||
|
||||
9
__mocks__/modules/next-image.tsx
Normal file
9
__mocks__/modules/next-image.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
jest.mock("next/image", () => {
|
||||
const React = require("react");
|
||||
|
||||
return function NextImage(props: any) {
|
||||
return <img {...props}>{props.children}</img>;
|
||||
};
|
||||
});
|
||||
|
||||
export default {};
|
||||
@@ -26,7 +26,7 @@ module.exports = {
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
// ...your ignore patterns
|
||||
"^((?!node_modules).)*node_modules.((?!unified|unist|hast|remark|mdast|micromark|retext|nlcst|rehype|decode\\-named\\-character\\-reference|character\\-entities|zwitch|longest\\-streak|unherit|parse\\-|strip\\-|html\\-void\\-elements|stringify\\-entities|ccount|markdown\\-|slash).)*$",
|
||||
"^((?!node_modules).)*node_modules.((?!unified|unist|hast|remark|mdast|micromark|retext|nlcst|rehype|decode-named-character-reference|character-entities|zwitch|longest-streak|unherit|parse-|strip-|html-void-elements|stringify-entities|ccount|markdown-|slash|vfile|property-|space-separated-|comma-separated-|web-namespaces).)*$",
|
||||
"^.+\\.module\\.(css|sass|scss)$",
|
||||
],
|
||||
// moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
|
||||
|
||||
Reference in New Issue
Block a user