mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-01-08 04:36:58 -06:00
PR-264673: fixing the conflict with cypress and jest.
This commit is contained in:
parent
f57a71f7c6
commit
4befddc726
@ -6,12 +6,12 @@ const aliases = pathsToModuleNameMapper(compilerOptions.paths, {
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '\\.cy.(js|jsx|ts|tsx)$'],
|
||||
testEnvironment: 'jsdom',
|
||||
moduleNameMapper: {
|
||||
...aliases,
|
||||
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileMock.ts',
|
||||
'\\.(css|sass|scss|less)$': 'identity-obj-proxy'
|
||||
},
|
||||
};
|
||||
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
|
||||
testPathIgnorePatterns: ['/node_modules/', '\\.cy.(js|jsx|ts|tsx)$'],
|
||||
testEnvironment: 'jsdom',
|
||||
moduleNameMapper: {
|
||||
...aliases,
|
||||
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileMock.ts',
|
||||
'\\.(css|sass|scss|less)$': 'identity-obj-proxy'
|
||||
},
|
||||
};
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@aleleba/create-react-component-library",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@aleleba/create-react-component-library",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"create-react-component-library": "bin/cli.js"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aleleba/create-react-component-library",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "A starter kit for create a React component Library with storybook",
|
||||
"bin": "./bin/cli.js",
|
||||
"main": "dist/index.js",
|
||||
|
@ -37,11 +37,12 @@
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"**/*"
|
||||
"."
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"PRNameGenerator.ts"
|
||||
"PRNameGenerator.ts",
|
||||
"cypress.config.ts"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user