[READ-ONLY] Mirror of https://github.com/danielroe/ripple-framework. Ripple is the presentation layer for building websites on the DPC Single Digital Presence platform.
0

Configure Feed

Select the types of activity you want to include in your feed.

ripple-framework / jest.config.js
1.1 kB 27 lines
1module.exports = { 2 verbose: true, 3 testEnvironmentOptions: { 4 url: 'http://localhost' 5 }, 6 collectCoverage: true, 7 testMatch: ['**/*.test.js', '**/*.test.ts'], 8 moduleFileExtensions: ['js', 'ts', 'vue'], 9 modulePathIgnorePatterns: ['node_modules', '.jest-test-results.json', 'dist'], 10 testEnvironment: 'jsdom', 11 transform: { 12 '^.+\\.js$': '<rootDir>/node_modules/babel-jest', 13 '^.+\\.ts$': '<rootDir>/node_modules/ts-jest', 14 '.*\\.vue$': '<rootDir>/node_modules/@vue/vue3-jest' 15 }, 16 transformIgnorePatterns: ['node_modules/(?!.pnpm)(?!(ripple-*|lodash-es)/)'], 17 extensionsToTreatAsEsm: ['.ts'], 18 moduleNameMapper: { 19 '^(\\.{1,2}/.*)\\.js$': '$1', 20 // @TODO storybook storyshots fails with MDX. 21 // Add it to filemock until they fix it. https://github.com/storybookjs/storybook/issues/7223#issuecomment-506912633 22 '\\.(mdx|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|svg)$': 23 '<rootDir>/__mocks__/fileMock.js', 24 '\\.(css|scss)$': '<rootDir>/__mocks__/styleMock.js' 25 }, 26 setupFilesAfterEnv: ['<rootDir>/__tests__/setup.js'] 27}