Skip to content

Commit

Permalink
build: switch from ts-jest to esbuild (#11)
Browse files Browse the repository at this point in the history
esbuild does not support automatic jsx/runtime,
so the `import React from 'react'` is still needed.

refs: evanw/esbuild#334
  • Loading branch information
aladdin-add committed Dec 27, 2021
1 parent cc4bc42 commit 8f187c0
Show file tree
Hide file tree
Showing 5 changed files with 3,755 additions and 222 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
@@ -1,7 +1,7 @@
module.exports = {
testEnvironment: 'jsdom',
transform: {
'.(ts|tsx)$': require.resolve('ts-jest/dist'),
'.(ts|tsx)$': 'esbuild-jest',
".+\\.(css|styl|less|sass|scss|png|jpg|svg|ttf|woff|woff2)$": "jest-transform-stub"
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
Expand Down

0 comments on commit 8f187c0

Please sign in to comment.