Coder Social home page Coder Social logo

vuei18n-test-problem's Introduction

Setup

yarn install
yarn test --ui

and open the url of vitest. (when yarn test --ui is executed, automatically it should open.)

How to reproduce

PLEASE IGNORE THE TEST STATUS. the both tests pass but I am not asserting anything image1

1. Click test file on the left, then click the console tab on the top bar

image2

2. scroll printed item and compare the print from "This works" test and "This does not work" tests.

image3

The both tests have the exact same code which is clicking the locale change button and printing the result. The first test changes the locale as expected, but the second test stops working.

image4

image5 image5

npm packages in this project

"vue-i18n": "^9.2.2"
"@intlify/unplugin-vue-i18n": "^0.10.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/user-event": "^14.4.3",
"@testing-library/vue": "^7.0.0",
"@vitejs/plugin-vue": "^4.2.1",
"@vitest/ui": "^0.30.1",
"jsdom": "^21.1.1",
"vite": "^4.1.4",
"vitest": "^0.30.1",
"vue": "^3.2.47"

(I tested with "vue-i18n": "^9.3.0-beta.17" as well but the result is the same)

vuei18n-test-problem's People

Contributors

nagisaando avatar

Watchers

 avatar

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.