GithubHelp home page GithubHelp logo

Comments (1)

mohanraj-r avatar mohanraj-r commented on June 16, 2024

When there is a TS warning/error, wdio runner currently skips running the tests but still reports passed with an exit status of 0

[0-0] RUNNING in chrome - /__tests__/browser-lib.test.ts
[1603406914.670][WARNING]: This version of ChromeDriver has not been tested with Chrome version 86.
[0-0] PASSED in chrome - /__tests__/browser-lib.test.ts

Spec Files:      1 passed, 1 total (100% completed) in 00:00:03

✨  Done in 4.55s.

Changing reporters (e.g. from spec to dot or concise) doesn't help (e.g. concise reports "All went well !!")

This needs to be fixed as it is misleading and could lead to issues passing undetected (e.g. in CI).
Currently to make sure that wdio tests are being run, have to closely watch the test output for signs e.g. tests names, count etc

[chrome 86.0.4240.111 mac os x #0-0] Running: chrome (v86.0.4240.111) on mac os x
[chrome 86.0.4240.111 mac os x #0-0] Session ID: dada5295279bd39d727176976a9a3b9f
[chrome 86.0.4240.111 mac os x #0-0]
[chrome 86.0.4240.111 mac os x #0-0] @sa11y/browser-lib
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should not have axe or sa11y loaded to start with
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should inject minified js
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should inject un-minified js
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should invoke functions on axe e.g. getRules
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should run a11y checks using axe
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should run a11y checks using sa11y
[chrome 86.0.4240.111 mac os x #0-0]    ✓ should filter a11y violations using sa11y
[chrome 86.0.4240.111 mac os x #0-0]
[chrome 86.0.4240.111 mac os x #0-0] 7 passing (3.1s)


Spec Files:      1 passed, 1 total (100% completed) in 00:00:06

✨  Done in 8.12s.

Can this issue be fixed with a ts-node config or migrating away from ts-node (to babel e.g.)

from sa11y.

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.