Skip to content

Commit

Permalink
fix: make esbuild as optional peer dependency (#3129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl authored Dec 7, 2021
1 parent fc1c137 commit 20258de
Show file tree
Hide file tree
Showing 9 changed files with 485 additions and 42 deletions.
10 changes: 7 additions & 3 deletions e2e/__tests__/ast-transformers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ describe('hoist-jest', () => {
})

describe('transformer-in-ts', () => {
const TRANSFORMER_IN_TS_DIR_NAME = `${AST_TRANSFORMERS_DIR_NAME}/transformer-in-ts`
const DIR = path.join(__dirname, '..', AST_TRANSFORMERS_DIR_NAME, 'transformer-in-ts')

test(`successfully runs the tests inside ${TRANSFORMER_IN_TS_DIR_NAME}`, () => {
const { json } = runWithJson(TRANSFORMER_IN_TS_DIR_NAME)
beforeAll(() => {
runNpmInstall(DIR)
})

test(`successfully runs the tests inside ${DIR}`, () => {
const { json } = runWithJson(DIR)

expect(json.success).toBe(true)
})
Expand Down
372 changes: 372 additions & 0 deletions e2e/ast-transformers/transformer-in-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions e2e/ast-transformers/transformer-in-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"dependencies": {
"esbuild": "~0.14.2"
},
"jest": {
"globals": {
"ts-jest": {
Expand Down
Loading

0 comments on commit 20258de

Please sign in to comment.