UNPKG

datocms-plugin-better-links

Version:

A plugin that allows you see multiple fields when selecting a Links field type.

42 lines (41 loc) 873 B
module.exports = { moduleFileExtensions: [ 'js', 'jsx', 'json', 'vue', ], transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', '^.+\\.jsx?$': 'babel-jest', }, collectCoverageFrom: [ 'src/**/*.(js|vue)', '!src/mocks/*.js', '!src/index.vue', '!src/main.js', '!src/graphql/index.js', ], transformIgnorePatterns: [ '<rootDir>/node_modules/(?!lodash-es/.*)', ], coverageThreshold: { global: { branches: 80, functions: 50, lines: 33, statements: 25, }, }, moduleNameMapper: { '^~/(.*)$': '<rootDir>/src/$1', }, snapshotSerializers: [ 'jest-serializer-vue', ], testMatch: [ '**/*(.|)(spec|test).(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)', ], testURL: 'http://localhost/', }