Coder Social home page Coder Social logo

Comments (9)

okwme avatar okwme commented on June 2, 2024 2

@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.

faboweb avatar faboweb commented on June 2, 2024 1

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.

okwme avatar okwme commented on June 2, 2024 1

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.

okwme avatar okwme commented on June 2, 2024 1

would be good to include once the warnings problem is squashed 🐞

from cosmos-ui.

faboweb avatar faboweb commented on June 2, 2024

What's the issue? Or are you already working on it and this is just a placeholder issue?

from cosmos-ui.

okwme avatar okwme commented on June 2, 2024

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.

faboweb avatar faboweb commented on June 2, 2024

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.

okwme avatar okwme commented on June 2, 2024

supposed to be fixed w this update but i'm still seeing the error
vuejs/vue-test-utils#631 (comment)

from cosmos-ui.

lovincyrus avatar lovincyrus commented on June 2, 2024

Closed because of #95

from cosmos-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.