Skip to content

Commit

Permalink
Attempt fixing Larva's ability to run JS tests :/
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanPak committed Jun 18, 2024
1 parent 48a5ed8 commit c09e92d
Show file tree
Hide file tree
Showing 4 changed files with 1,426 additions and 237 deletions.
3 changes: 3 additions & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

// JSDOM
import { TextEncoder, TextDecoder } from 'util';
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

const { JSDOM } = require( 'jsdom' );

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
testEnvironment: 'node',
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'/fixtures/',
'/larva/src/patterns/',
Expand Down
Loading

0 comments on commit c09e92d

Please sign in to comment.