npm install
npm run serve
npm run build
npm run lint
The repo for Vue Mastery's Intro to State Management course
npm install
npm run serve
npm run build
npm run lint
I keep trying to mount the component for real world testing L2 start but I keep getting this error
> [email protected] test:unit
> vue-cli-service test:unit
FAIL tests/unit/EventCard.spec.js
EventCard
✕ renders the event's data successfully (16ms)
● EventCard › renders the event's data successfully
TypeError: 'set' on proxy: trap returned falsish for property 'hasOwnProperty'
11 | }
12 |
> 13 | mount(EventCard, { props: { event } })
| ^
14 | })
15 | })
16 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7838:24)
at Object.<anonymous> (tests/unit/EventCard.spec.js:13:5)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 1.157s, estimated 2s
Ran all test suites.
FAIL tests/unit/EventCard.spec.js
EventCard
× renders successfully (20ms)
● EventCard › renders successfully
TypeError: 'set' on proxy: trap returned falsish for property 'hasOwnProperty'
9 | time: '11:00',
10 | }
> 11 | mount(EventCard, {
| ^
12 | props: { event },
13 | })
14 | })
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:7838:24)
at Object.<anonymous> (tests/unit/EventCard.spec.js:11:5)
console.warn node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:40
[Vue warn]: Failed to resolve component: router-link
at <Anonymous event= {
id: 1,
title: 'location in testing',
date: 'July 22, 2022',
time: '11:00'
} ref="VTU_COMPONENT" >
at
I was doing the Vue Mastery Real World Testing course and it seems like in this line you need this line:
Vuex_Fundamentals/src/store/index.js
Line 41 in e7df97a
to be fetchEvent({ commit, state }, id) {
so that the action can access state.
I cannot run the test suite due to:
FAIL tests/unit/EventCard.spec.js
● Test suite failed to run
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.842s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test:unit: `vue-cli-service test:unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test:unit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I tried to delete the node_modules
folder and rerun npm install - it did not help.
Any idea why it is happening?
Error: Network Error at event page while running in docker environment.
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.