vscode-jest-runner icon indicating copy to clipboard operation
vscode-jest-runner copied to clipboard

Compatibility with testdeck

Open Ocaenyth opened this issue 4 years ago • 2 comments

I was looking around for some VSCode extensions and stumbled upon your project, and although it wasn't what I was originally looking for, it seemed to be a really interesting and useful tool ! Sadly I'm using testdeck/jest for my tests and Jest Runner does not seem to be compatible with it (and understandably so).

I imagine it is due, in part at least, to the different file structure but I don't see why this wouldn't be possible to implement and adapt. I understand this represents a lot of work, and I don't expect it to be implemented any time soon, but I think it could be a great addition to your project eventually

Here's testdeck's package, and the example from their README :

import { suite, test } from "@testdeck/jest";

@suite
class Hello {
  
  @test
  world() {
    expect(false).toBe(true);
  }
} 

From what I understand, in order to implement the compatibility, we would need to figure out how to run a suite based on the @suite decorators, or single tests based on the @test decorators

Ocaenyth avatar Dec 30 '20 11:12 Ocaenyth

hey @Ocaenyth !

i didn't know testdeck.

we are using babel/jest parser to parse the test, im unsure if it can parse the testdeck file structure!

currently i don't have any free time to look into this, but im open and happy for any pull requests

firsttris avatar Jan 12 '21 08:01 firsttris

@firsttris hello bro ~ @Ocaenyth mentioned above, I really want to use vscode-jest-runner using testdeck! could you consider about this?

umanking avatar May 05 '22 05:05 umanking