From 0ecb3a7632fa9f5da73c1fd4d34c07f07edff2bf Mon Sep 17 00:00:00 2001 From: Hugo-ter-Doest Date: Tue, 2 Jul 2024 09:48:08 +0200 Subject: [PATCH] Removed ESM build file --- .../spec/check_imports_spec.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 spec/test_esm_bundle/spec/check_imports_spec.js diff --git a/spec/test_esm_bundle/spec/check_imports_spec.js b/spec/test_esm_bundle/spec/check_imports_spec.js deleted file mode 100644 index 7e57a8aa3..000000000 --- a/spec/test_esm_bundle/spec/check_imports_spec.js +++ /dev/null @@ -1,19 +0,0 @@ -const libPath = 'dist/esm/index.js' - -describe('Module tests', () => { - let myLib - - beforeAll(() => { - // Assuming the module is named 'myModule' and is located in the 'src' directory - // import * as myLib from libPath - }) - - // List of functions and classes expected to be exported by the module - const expectedExports = ['Metaphone'] - - expectedExports.forEach((exportName) => { - it(`should have an export named ${exportName}`, () => { - expect(myLib[exportName]).toBeDefined() - }) - }) -})