UNPKG

mwc-components

Version:

## Project setup ``` yarn install ```

32 lines (30 loc) 1.04 kB
const path = require('path') module.exports = { browser: true, moduleFileExtensions: ['js', 'jsx', 'json', 'vue'], transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', '^.+\\.(js|jsx)?$': 'babel-jest' // "^.+\\.(js|html|scss)$": "<rootDir>/bin/preprocessor.js" }, // dependencyExtractor: null, setupTestFrameworkScriptFile: '<rootDir>/bin/jest.js', transformIgnorePatterns: ['/node_modules/(?!(morningstar-design-system)/)'], moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1', '^@mocks/(.*)$': '<rootDir>/test/mocks/$1', '^@root/(.*)$': '<rootDir>/$1', '^mdsBase/(.*)$': '<rootDir>/node_modules/morningstar-design-system/components/$1' }, snapshotSerializers: ['jest-serializer-vue'], testMatch: [ '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' ], testURL: 'http://localhost/', watchPlugins: [ 'jest-watch-typeahead/filename', 'jest-watch-typeahead/testname' ] }