Skip to content

Commit

Permalink
Update multiple dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
morellexf13 committed Aug 9, 2022
1 parent a8d32ec commit 5acd5ad
Show file tree
Hide file tree
Showing 7 changed files with 4,645 additions and 4,594 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
19 changes: 19 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{ useBuiltIns: "entry", corejs: "2", targets: { node: "current" } }
]
],
plugins: [
function () {
return {
visitor: {
MetaProperty(path) {
path.replaceWithSourceString("process");
}
}
};
}
]
};
10 changes: 0 additions & 10 deletions babel.config.json

This file was deleted.

79 changes: 48 additions & 31 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
/**
* 🃏 Jest configuration file
* https://jestjs.io/docs/27.x/getting-started
*/
const ROOT_DIR = "<rootDir>"
const ROOT_SRC = `${ROOT_DIR}/src`
const FULL_ROOT_SRC = `${ROOT_SRC}/$1`
module.exports = {
moduleFileExtensions: ["js", "json", "vue"],
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy",
"^~/(.*)$": FULL_ROOT_SRC,
"^~~/(.*)$": FULL_ROOT_SRC,
"^@/(.*)$": FULL_ROOT_SRC,
"^@@/(.*)$": FULL_ROOT_SRC,
"^@./(.*)$": `${ROOT_DIR}/$1`,
"^@root(.*)$": FULL_ROOT_SRC,
"^@components(.*)$": `${ROOT_SRC}/components$1`,
"^@pages(.*)$": `${ROOT_SRC}/pages$1`,
"^@scripts(.*)$": `${ROOT_SRC}/assets/scripts$1`,
"^@stores(.*)$": `${ROOT_DIR}/stores/$1`
},
transform: {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "@vue/vue3-jest"

},
snapshotSerializers: [`${ROOT_DIR}/node_modules/jest-serializer-vue`],
testEnvironment: "jsdom",
setupFilesAfterEnv: [`${ROOT_DIR}/jest.config.js`]
}
const ROOT_DIR = "<rootDir>";
const ROOT_SRC = `${ROOT_DIR}/src`;
const FULL_ROOT_SRC = `${ROOT_SRC}/$1`;
module.exports = {
testEnvironment: "jsdom",
testEnvironmentOptions: {
customExportConditions: ["node", "node-addons"]
},
moduleFileExtensions: ["js", "ts", "vue", "json"],
setupFilesAfterEnv: [`${ROOT_DIR}/tests/setup.js`],
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$":
"identity-obj-proxy",
"^~/(.*)$": FULL_ROOT_SRC,
"^~~/(.*)$": FULL_ROOT_SRC,
"^@/(.*)$": FULL_ROOT_SRC,
"^@@/(.*)$": FULL_ROOT_SRC,
"^@./(.*)$": `${ROOT_DIR}/$1`,
"@meta(.*)$": `${ROOT_DIR}/meta/$1`,
"@root(.*)$": `${ROOT_DIR}/$1`,
"^@components(.*)$": `${ROOT_SRC}/components$1`,
"^@pages(.*)$": `${ROOT_SRC}/pages$1`,
"^@scripts(.*)$": `${ROOT_SRC}/assets/scripts$1`,
"^@stores(.*)$": `${ROOT_DIR}/stores/$1`
},
preset: "ts-jest",
// testMatch: ["<rootDir>/__tests__/__unit__/**/*.spec.js"],
transformIgnorePatterns: ["/node_modules/"],
transform: {
"^.+\\.js$": "babel-jest",
"^.+\\.(js|ts)$": "@sucrase/jest-plugin",
"^.+\\.(vue)$": "@vue/vue3-jest",
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$":
"jest-transform-stub"
},

coverageDirectory: "coverage",
coverageProvider: "v8",
collectCoverageFrom: ["src/**/*.{js,vue}", "!src/main.js", "!src/App.vue"],
coverageThreshold: {
global: {
branches: 40,
functions: 80,
lines: 90,
statements: 80
}
}
};
Loading

0 comments on commit 5acd5ad

Please sign in to comment.