jest-plugins
jest-plugins copied to clipboard
Adds plugins feature to jest for easily adding extensions.
@negativetwelve FYI.. I did a port of the loader plugin and the "set" and "context" plugins to vitest. They are available over at https://github.com/OutOfOrder/vitest-plugins/
## Description i fell in love with the `context` alias when using `rspec`, but after adding the [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) plugin, i now get several eslint `Duplicate _____ in describe block` errors,...
Please, update the documentation in READMEs
## Description Eslint will complain about undefined variabels when using `jest-plugin-set`. Is there a way to work around that? So far I've had to turn the `no-undef` rule off for...
## Description ``` js import fs from 'jest-plugin-fs'; // Mock out the filesystem. jest.mock('fs', () => require('jest-plugin-fs/mock')); describe('FileWriter', () => { // Create an in-memory filesystem. beforeEach(() => fs.mock()); afterEach(()...
Error: ``` Cannot find module 'babel-runtime/core-js/object/entries' from 'fs.js' ``` In the built file, I see `var _entries=require('babel-runtime/core-js/object/entries')` which is the problem. I'm not sure what the exact fix is but...
## Description Nested `set` calls must ALL come before `beforeEach` in order to be set properly. Otherwise, it'll use the values from outer `set` calls which is incorrect ## Screenshot...
## Description This is one thing that I really miss from RSpec - it would be great if we could somehow permit this kind of syntax: ``` allow(objectToBeMocked) .toReceive(methodName) .andReturn(mockedReturnValue)...
It is unclear how to use this plugin from the example code which does not use `fs` directly at any point, but only references an undeclared FileWriter, which I assume...
## Description ## Screenshot ## Test Plan