mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-10 13:56:11 +10:00
- fix($core): markdown slot doesn‘t work. (regression of c85f62d)
- docs: fresh Node.JS API.
- test: official plugins.
30 lines
679 B
JavaScript
30 lines
679 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
rootDir: path.resolve(__dirname, '..'),
|
|
verbose: true,
|
|
testURL: 'http://localhost/',
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'vue',
|
|
'ts',
|
|
'json'
|
|
],
|
|
testRegex: '(/__test__/.*|(\\.|/)(test|spec))\\.(ts|js)?$',
|
|
testPathIgnorePatterns: [
|
|
'test.js',
|
|
path.resolve(__dirname, '../test')
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/$1'
|
|
},
|
|
transform: {
|
|
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest',
|
|
'^.+\\.ts?$': '<rootDir>/node_modules/ts-jest'
|
|
},
|
|
snapshotSerializers: [
|
|
'<rootDir>/node_modules/jest-serializer-vue'
|
|
]
|
|
}
|