kjugi / meeting-app-unit-tests-playground Goto Github PK
View Code? Open in Web Editor NEWUnit tests patterns when using JEST and Vue2 (vue-test-utils)
License: MIT License
Unit tests patterns when using JEST and Vue2 (vue-test-utils)
License: MIT License
After stable release, I will wait some time for vue-test-utils and other necessary libs to be compatible with a new release.
After checking what is changing in testing the vue apps I will consider 2 options:
project
|
+-- vue2
|
+-- done
+-- practices
+-- vue3
|
+-- done
+-- practices
This is probably the most possible scenario and with this option will just keep it in one place what is great.
Also need to keep in mind that vue 2.7 is in WIP stage. That means an update for vue2 app version
Nice playground! Definitely good inspiration on how to write tests.
But unfortunately I think you're missing a package or something, because when I run cd done && yarn && yarn serve
.
I get this:
ERROR Failed to compile with 1 errors 2:17:46 PM
error in ./src/main.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/src/main.js: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/preset-env/lib/index.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/babel-preset-app/index.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/cli-plugin-babel/preset.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/core/lib/config/files/plugins.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/core/lib/config/files/index.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/core/lib/index.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/cli-plugin-babel/index.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/cli-service/lib/Service.js
- /Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/cli-service/bin/vue-cli-service.js (While processing: "/Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@vue/cli-plugin-babel/preset.js")
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
at Function.Module._load (internal/modules/cjs/loader.js:890:27)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/USERNAME/Documents/www/meeting-app-unit-tests-playground/done/node_modules/@babel/preset-env/lib/index.js:29:44)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
@ multi (webpack)-dev-server/client?http://192.168.1.84:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
I tried installing @babel/compat-data
to no avail.
Happy hunting!
Update it and adjust changes. After that release a new tag.
Check new implementation for fake-timers
introduced in this jestjs/jest#7776 PR
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.