Skip to content

Commit f828d80

Browse files
committed
wip #90
1 parent c333f90 commit f828d80

File tree

6 files changed

+223
-31
lines changed

6 files changed

+223
-31
lines changed

index.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

package-lock.json

Lines changed: 200 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
"unit": "jest --config tests/unit/jest.conf.js --coverage"
1313
},
1414
"dependencies": {
15+
"@blockly/theme-dark": "^3.0.12",
1516
"@fortawesome/fontawesome-free": "^5.15.4",
17+
"@mdi/font": "^6.7.96",
18+
"@vuelidate/core": "2.0.0-alpha.42",
19+
"@vuelidate/validators": "2.0.0-alpha.30",
1620
"axios": "^0.27.2",
1721
"blockly": "^8.0.3",
18-
"@blockly/theme-dark": "^3.0.12",
1922
"core-js": "^3.23.3",
2023
"material-design-icons-iconfont": "^6.7.0",
21-
"@mdi/font": "^6.7.96",
2224
"prismjs": "^1.28.0",
2325
"stylus-loader": "^3.0.2",
2426
"typeface-fira-mono": "^1.1.13",
@@ -34,26 +36,24 @@
3436
"vue-i18n": "^9.1.10",
3537
"vue-prism-component": "^2.0.0",
3638
"vue-router": "^4.0.16",
37-
"@vuelidate/core": "2.0.0-alpha.42",
38-
"@vuelidate/validators": "2.0.0-alpha.30",
3939
"vuetify": "^3.0.0-beta.5",
4040
"vuex": "^4.0.2"
4141
},
4242
"devDependencies": {
43-
"@babel/core": "^7.16.7",
43+
"@babel/core": "^7.18.6",
44+
"@babel/eslint-parser": "^7.18.2",
45+
"@babel/eslint-plugin": "^7.17.7",
4446
"@vue/cli-plugin-babel": "~5.0.0",
4547
"@vue/cli-plugin-eslint": "~5.0.0",
4648
"@vue/cli-plugin-router": "~5.0.0",
4749
"@vue/cli-plugin-vuex": "~5.0.0",
4850
"@vue/cli-service": "~5.0.0",
4951
"@vue/test-utils": "^2.0.0",
50-
"@babel/eslint-parser": "^7.18.2",
51-
"@babel/eslint-plugin": "^7.17.7",
52+
"@vue/vue3-jest": "^28.0.1",
53+
"babel-core": "^7.0.0-bridge.0",
5254
"babel-jest": "^28.1.2",
5355
"copy-webpack-plugin": "^11.0.0",
54-
"postcss-loader": "^7.0.0",
55-
"sass-loader": "^13.0.2",
56-
"eslint": "^8.18.0",
56+
"eslint": "^8.18.0",
5757
"eslint-config-airbnb-base": "^15.0.0",
5858
"eslint-plugin-import": "^2.25.4",
5959
"eslint-plugin-vue": "^8.0.3",
@@ -62,13 +62,15 @@
6262
"node-notifier": "^10.0.0",
6363
"postcss": "^8.4.14",
6464
"postcss-import": "^11.0.0",
65+
"postcss-loader": "^7.0.0",
6566
"postcss-url": "^7.0.0",
6667
"sass": "~1.32.0",
68+
"sass-loader": "^13.0.2",
6769
"stylus": "^0.58.1",
6870
"vue-cli-plugin-vuetify": "~2.5.1",
6971
"vue-style-loader": "^4.1.3",
7072
"vue-template-compiler": "^2.6.11",
71-
"webpack-plugin-vuetify": "^2.0.0-alpha.0"
73+
"webpack-plugin-vuetify": "^2.0.0-alpha.11"
7274
},
7375
"browserslist": [
7476
"> 1%",

public/favicon.ico

28 KB
Binary file not shown.

tests/unit/jest.conf.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//jest.config.js
2+
module.exports = {
3+
moduleFileExtensions: ['js', 'json', 'vue'],
4+
transform: {
5+
"^.+\\.js$": "babel-jest",
6+
".*\\.(vue)$": "@vue/vue3-jest"
7+
}
8+
};

tests/unit/specs/Landing.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Libraries
2-
import Vuetify from 'vuetify';
2+
import vuetify from './plugins/vuetify';
33

44
import Landing from '@/components/Landing';
55
import { shallowMount } from '@vue/test-utils'
@@ -11,10 +11,9 @@ import i18n from '../../../src/i18n/index';
1111

1212
describe('Landing.vue', () => {
1313
const localVue = createLocalVue();
14-
let vuetify;
14+
localVue.use(vuetify);
1515

1616
beforeEach(() => {
17-
vuetify = new Vuetify()
1817
})
1918

2019
it('should render correct contents', () => {

0 commit comments

Comments
 (0)