module.exports = { moduleFileExtensions: ['js', 'jsx', 'ts', 'json', 'vue'], transform: { '\\.(gql|graphql)$': 'jest-transform-graphql', '^.+\\.js$': 'babel-jest', '^.+\\.ts$': 'babel-jest', '^.+\\.vue$': '@vue/vue2-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', }, modulePaths: ['/src', '/node_modules'], transformIgnorePatterns: ['/node_modules/'], moduleNameMapper: { '^@/(.*)$': '/src/$1', '^gql/(.*)$': '/src/graphql/gql/$1', }, snapshotSerializers: ['/node_modules/jest-serializer-vue'], testEnvironment: 'jsdom', 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'], };