From 6e1e41782f08dcf2f63681dc7ff311e1c37891a8 Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Sun, 20 Aug 2023 18:02:42 +0200 Subject: [PATCH] Call jest directly instead of 'tsdx test' // #1 --- .babelrc | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..271288c --- /dev/null +++ b/.babelrc @@ -0,0 +1,10 @@ +{ + "presets": [ + // See https://stackoverflow.com/questions/63005011/support-for-the-experimental-syntax-jsx-isnt-currently-enabled + "@babel/preset-env", + "@babel/preset-react", + + // See https://jestjs.io/docs/getting-started#using-typescript + "@babel/preset-typescript" + ] +} diff --git a/package.json b/package.json index 9336a91..1c56ebf 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "scripts": { "start": "tsdx watch", "build": "tsdx build", - "test": "tsdx test --passWithNoTests --no-cache --config jest.config.json", + "test": "jest", "lint": "eslint . --ignore-pattern dist && prettier --check .", "format": "eslint . --ignore-pattern dist --fix && prettier --write .", "prepare": "husky install && tsdx build",