|
1 | 1 | /**
|
2 |
| - * @jest-environment jsdom |
| 2 | + * @vitest-environment jsdom |
3 | 3 | */
|
4 | 4 |
|
5 | 5 | import type { WrappedFunction } from '../../src/types-hoist';
|
@@ -316,17 +316,10 @@ describe('objectify()', () => {
|
316 | 316 | });
|
317 | 317 |
|
318 | 318 | describe('wraps other primitives with their respective object wrapper classes', () => {
|
319 |
| - // TODO: There's currently a bug in Jest - if you give it the `Boolean` class, it runs `typeof received === |
320 |
| - // 'boolean'` but not `received instanceof Boolean` (the way it correctly does for other primitive wrappers, like |
321 |
| - // `Number` and `String). (See https://github.com/facebook/jest/pull/11976.) Once that is fixed and we upgrade jest, |
322 |
| - // we can comment the test below back in. (The tests for symbols and bigints are working only because our current |
323 |
| - // version of jest is sufficiently old that they're not even considered in the relevant check and just fall to the |
324 |
| - // default `instanceof` check jest uses for all unknown classes.) |
325 |
| - |
326 | 319 | it.each([
|
327 | 320 | ['number', Number, 1121],
|
328 | 321 | ['string', String, 'Dogs are great!'],
|
329 |
| - // ["boolean", Boolean, true], |
| 322 | + ['boolean', Boolean, true], |
330 | 323 | ['symbol', Symbol, Symbol('Maisey')],
|
331 | 324 | ])('%s', (_caseName, wrapperClass, primitive) => {
|
332 | 325 | const objectifiedPrimitive = objectify(primitive);
|
|
0 commit comments