chore: setup nuxt

This commit is contained in:
Corentin Thomasset 2020-12-21 22:06:13 +01:00
parent d0bed32b8e
commit c66e2097b6
No known key found for this signature in database
GPG key ID: DBD997E935996158
33 changed files with 17799 additions and 0 deletions

18
jest.config.js Normal file
View file

@ -0,0 +1,18 @@
module.exports = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
'^vue$': 'vue/dist/vue.common.js',
},
moduleFileExtensions: ['ts', 'js', 'vue', 'json'],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest',
},
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/components/**/*.vue',
'<rootDir>/pages/**/*.vue',
],
}