Test - esbuild

This commit is contained in:
Sidharth Vinod
2022-09-02 11:08:14 +05:30
parent 04f18630f3
commit 99923fcd0f
4 changed files with 16 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
const path = require('path');
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
testEnvironment: 'jsdom',
preset: 'ts-jest',
transform: {
'^.+\\.jsx?$': ['babel-jest', { rootMode: 'upward' }],
'^.+\\.tsx?$': ['jest-esbuild', { banner: '"use strict";' }],
'^.+\\.jsx?$': ['jest-esbuild', { banner: '"use strict";' }],
'^.+\\.jison$': [
path.resolve(__dirname, './src/jison/transformer.js'),
{ 'token-stack': true },