Comments (9)
@faboweb might be we have to wait for an update to the vue test suite. just annoying to see red warnings when tests are passing and didn't want to forget to check up on it at a later date
from cosmos-ui.
Ok with me. (See what I did there ;-D)
Small note: It is always helpful to provide a little context to not forget what the issue was about. (But I also forget often enough :/)
Red warnings? Shouldn't warnings fail the tests?
from cosmos-ui.
no totally, i hit submit too soon and was writing the followup post as i collected the misbehaving tests.
apparently warnings pass as they're just vue warnings:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "type"
it's an open issue here: vuejs/vue-test-utils#631
from cosmos-ui.
would be good to include once the warnings problem is squashed 🐞
from cosmos-ui.
What's the issue? Or are you already working on it and this is just a placeholder issue?
from cosmos-ui.
has to do with updating props in the tests, this is interpreted as overwriting a prop within the component. Happens with following tests:
- tests/unit/TmFormMsg.spec.js
- tests/unit/TmLiTransaction.spec.js
- tests/unit/TmListItem.spec.js
- tests/unit/TmTextMarkdown.spec.js
from cosmos-ui.
Sorry, I was too quick. 🚤 💥
In Voyager I created this strange script to fail tests that console.warn
: https://github.com/cosmos/voyager/blob/develop/test/unit/helpers/console_error_throw.js
from cosmos-ui.
supposed to be fixed w this update but i'm still seeing the error
vuejs/vue-test-utils#631 (comment)
from cosmos-ui.
Closed because of #95
from cosmos-ui.
Related Issues (20)
- fix test error caused by time zones and `moment` HOT 1
- Can't set disabled state of buttons HOT 2
- add min max to number input
- bump version HOT 3
- bump version (again) HOT 1
- remove animations
- update npmjs.com HOT 1
- make router components available in tests HOT 1
- yarn serve fails to compile with 3 errors HOT 2
- TmField docs: `num` -> `number` HOT 1
- TmField trims text input.
- CHANGELOG doesn't comply with "Keep a Changelog"
- Add URL to Github Repo HOT 2
- Modal: add close on esc
- Modal: remove `visible` in favor of checking slot contents HOT 2
- Tooltip: adjust position based on proximity to viewport border
- Increase animation speed on Modal
- Rename this repo to cosmos-ui HOT 1
- Create a global stylesheet
- Add solidity language support to code-block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmos-ui.