-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Volentix/development
Merge Dev into Master
- Loading branch information
Showing
37 changed files
with
7,212 additions
and
1,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": "commonjs", | ||
"targets": { | ||
"node": "current" | ||
"plugins": ["@babel/plugin-syntax-dynamic-import"], | ||
"env": { | ||
"test": { | ||
"plugins": ["dynamic-import-node"], | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": "commonjs", | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import", | ||
"babel-plugin-dynamic-import-node" | ||
] | ||
] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
const fs = require('fs-extra') | ||
let extend = undefined | ||
|
||
/** | ||
* The .babelrc file has been created to assist Jest for transpiling. | ||
* You should keep your application's babel rules in this file. | ||
*/ | ||
|
||
if (fs.existsSync('./.babelrc')) { | ||
extend = './.babelrc' | ||
} | ||
|
||
module.exports = { | ||
presets: [ | ||
'@quasar/babel-preset-app' | ||
] | ||
], | ||
extends: extend | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
module.exports = { | ||
globals: { | ||
__DEV__: true | ||
}, | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/test/jest/jest.setup.js' | ||
], | ||
// noStackTrace: true, | ||
// bail: true, | ||
// cache: false, | ||
// verbose: true, | ||
// watch: true, | ||
collectCoverage: true, | ||
coverageDirectory: '<rootDir>/test/jest/coverage', | ||
collectCoverageFrom: [ | ||
'<rootDir>/src/**/*.vue', | ||
'<rootDir>/src/**/*.js', | ||
'<rootDir>/src/**/*.ts', | ||
'<rootDir>/src/**/*.jsx' | ||
], | ||
coverageThreshold: { | ||
global: { | ||
// branches: 50, | ||
// functions: 50, | ||
// lines: 50, | ||
// statements: 50 | ||
} | ||
}, | ||
testMatch: [ | ||
'<rootDir>/test/jest/__tests__/**/*.spec.js', | ||
'<rootDir>/test/jest/__tests__/**/*.test.js', | ||
'<rootDir>/src/**/__tests__/*_jest.spec.js' | ||
], | ||
moduleFileExtensions: [ | ||
'vue', | ||
'js', | ||
'jsx', | ||
'json', | ||
'ts', | ||
'tsx' | ||
], | ||
moduleNameMapper: { | ||
'^vue$': '<rootDir>/node_modules/vue/dist/vue.common.js', | ||
'^test-utils$': '<rootDir>/node_modules/@vue/test-utils/dist/vue-test-utils.js', | ||
'^quasar$': '<rootDir>/node_modules/quasar/dist/quasar.common.js', | ||
'^~/(.*)$': '<rootDir>/$1', | ||
'^src/(.*)$': '<rootDir>/src/$1', | ||
'.*css$': '<rootDir>/test/jest/utils/stub.css' | ||
}, | ||
transform: { | ||
'.*\\.vue$': 'vue-jest', | ||
'.*\\.js$': 'babel-jest', | ||
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', | ||
// use these if NPM is being flaky | ||
// '.*\\.vue$': '<rootDir>/node_modules/@quasar/quasar-app-extension-testing-unit-jest/node_modules/vue-jest', | ||
// '.*\\.js$': '<rootDir>/node_modules/@quasar/quasar-app-extension-testing-unit-jest/node_modules/babel-jest' | ||
}, | ||
transformIgnorePatterns: [ | ||
'<rootDir>/node_modules/(?!quasar/lang)' | ||
], | ||
snapshotSerializers: [ | ||
'<rootDir>/node_modules/jest-serializer-vue' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"unit-jest": { | ||
"runnerCommand": "jest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.