mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
5fed1955a9
* trying rematch refactor: rematch for store packages migrate login to rematch Update packages/plugins/ui-theme/src/store/store.ts Co-authored-by: Sergio Moreno <sergiomorenoalbert@gmail.com> hide temporary fix test for login migrate package download resource fix tests * add missing fixture * migrate detail page support * fix tests * migrate search * migrate search * clean up tests * remove tags * fix lint * add changeset * fix: search model typings * add type * types * apply suggestions Co-authored-by: Sergio Moreno <22656541+semoal@users.noreply.github.com>
39 lines
1.4 KiB
JavaScript
39 lines
1.4 KiB
JavaScript
const config = require('../../../../jest/config');
|
|
|
|
module.exports = Object.assign({}, config, {
|
|
name: 'verdaccio-ui-jest',
|
|
verbose: true,
|
|
automock: false,
|
|
collectCoverage: true,
|
|
testEnvironment: 'jest-environment-jsdom-global',
|
|
transform: {
|
|
'^.+\\.(js|ts|tsx)$': 'babel-jest',
|
|
},
|
|
moduleFileExtensions: ['js', 'ts', 'tsx'],
|
|
testURL: 'http://localhost:9000/',
|
|
rootDir: '..',
|
|
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect', '<rootDir>/jest/setup-env.ts'],
|
|
setupFiles: ['<rootDir>/jest/setup.ts'],
|
|
transformIgnorePatterns: ['<rootDir>/node_modules/(?!react-syntax-highlighter)'],
|
|
modulePathIgnorePatterns: [
|
|
'<rootDir>/coverage',
|
|
'<rootDir>/scripts',
|
|
'<rootDir>/.circleci',
|
|
'<rootDir>/tools',
|
|
'<rootDir>/build',
|
|
'<rootDir>/.vscode/',
|
|
'<rootDir>/test/e2e/',
|
|
],
|
|
snapshotSerializers: ['@emotion/jest/serializer'],
|
|
moduleNameMapper: {
|
|
'\\.(s?css)$': '<rootDir>/jest/identity.js',
|
|
'\\.(png)$': '<rootDir>/jest/identity.js',
|
|
'\\.(svg)$': '<rootDir>/jest/unit/empty.ts',
|
|
'github-markdown-css': '<rootDir>/jest/identity.js',
|
|
// note: this section has to be on sync with webpack configuration
|
|
'verdaccio-ui/components/(.*)': '<rootDir>/src/components/$1',
|
|
'verdaccio-ui/utils/(.*)': '<rootDir>/src/utils/$1',
|
|
'verdaccio-ui/providers/(.*)': '<rootDir>/src/providers/$1',
|
|
'verdaccio-ui/design-tokens/(.*)': '<rootDir>/src/design-tokens/$1',
|
|
},
|
|
});
|