askql icon indicating copy to clipboard operation
askql copied to clipboard

Add more jest resources to the test environment

Open czerwinskilukasz1 opened this issue 4 years ago • 3 comments

Following this issue, we would like to add more resources from jest than just expect and toBe. Let's discuss which ones to add.

czerwinskilukasz1 avatar Jun 29 '20 14:06 czerwinskilukasz1

My expectation here would be that AskScript programmer with Jest gets the same tools that TypeScript programmer gets so all these https://jestjs.io/docs/en/expect should accessible

mhagmajer avatar Jun 29 '20 14:06 mhagmajer

This is a lot of resources (around 60). Would we need to implement each of them by specifying a separate resource({......}) or is there any magic that could do the job for us?

czerwinskilukasz1 avatar Jun 29 '20 16:06 czerwinskilukasz1

Using @jest/globals might be a way to go, per issue https://github.com/xFAANG/askql/issues/356

czerwinskilukasz1 avatar Jul 08 '20 10:07 czerwinskilukasz1