From 7605918af0a3ff47366aa00042d591cd1f99673a Mon Sep 17 00:00:00 2001 From: Ben Asher Date: Sat, 24 Jun 2023 18:51:29 -0700 Subject: [PATCH] add extension alias for cypress to resolve ts files with js endings --- tests/cypress/plugins/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cypress/plugins/index.js b/tests/cypress/plugins/index.js index 653d4e4825c..8aab1de4b8c 100644 --- a/tests/cypress/plugins/index.js +++ b/tests/cypress/plugins/index.js @@ -43,6 +43,9 @@ module.exports = on => { resolve: { extensions: ['.js', '.jsx', '.ts', '.tsx'], alias, + extensionAlias: { + '.js': ['.js', '.ts'], + }, }, }, }