PR-264673: fixing the conflict with cypress and jest.

This commit is contained in:
Alejandro Lembke Barrientos 2023-03-04 01:07:57 +00:00
parent f57a71f7c6
commit 4befddc726
4 changed files with 15 additions and 14 deletions

View File

@ -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
View File

@ -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"

View File

@ -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",

View File

@ -37,11 +37,12 @@
}
},
"include": [
"**/*"
"."
],
"exclude": [
"node_modules",
"dist",
"PRNameGenerator.ts"
"PRNameGenerator.ts",
"cypress.config.ts"
]
}