Releases: Julien-R44/japa-vscode
Support for JSX/TSX files
Changes
- Previous versions didn't work with .jsx and .tsx files. Now it works as expected
- The
filePatternoption was not used for file discovery in the test explorer - Fixed cases when
npmScriptcontained the npm script to run + some additionals arguments
What's Changed
New Contributors
Full Changelog: v2.1.2...v2.1.3
Fix NODE_NO_WARNING not cross-platforms
- Fixed the
NODE_NO_WARNINGSthat was set when running tests. It was not cross-platform and therefore didn't works for Windows/Powershell users
Full Changelog: 2.1.0...v2.1.1
Version 2
Changes
- Japa v3 support. Retro-compatibility retained with Japa v2.
- Major change in this new version is the integration of Vscode's Testing Explorer. More information here
- Please note that this feature is only available for Japa v3 and not Japa v2 !
- Added
japa.misc.disableNodeWarningsoption. Activated by default. Allows to hide the large warnings emitted by Node about the experimental features used in your project, before each test execution.
Bundling issue v2
Changes
- Last build was also broken due to dependencies bundling. Ditched
youchforerror-stack-parser
Bundling issue
Changes
Last version was broken due to some bundled dependencies. ( that's why you should never bundle node.js code. it's such a headache. 😄 but required in this specific context of a vscode extension )
Vscode testing explorer integration
Vscode test explorer integration
Warning
For using this feature you will need to use Japa v3 that is still in a pre-release state ( japa/runner#30 )
introducing integration with Vscode's testing API 🔥
Short demo video here:
Fix jumping editor
Previously, when you typed in a test file, the editor could "jump" because the "run test" codelens appeared and disappeared depending on the validity of the source code syntax.
This was due to the AST no longer being able to calculate new codelenses, as it was unable to parse an invalid file. Which was a bit boring. This has now been fixed: we now cache and return the previous codelens in the event that the AST is invalid.
Fix bundling issue
Fixes
There was a bundling problem with the previous version : the pkg-up dependency wasn't found when the extension was launched
Fix test runner cwd in monorepo
Fixes
- When clicking "Run test" in a monorepo the cwd was wrong. We now search for the nearest parent directory that contains a package.json, then use it a cwd when running test.
Snapshot codelens
Small codelens now appears above snapshot call expressions
When clicked, it redirects you to the corresponding snapshot file, precisely at the snapshot value's location
See the video here :
https://twitter.com/julien_rpt/status/1666175232359497740
