diff options
| author | Shinigami <[email protected]> | 2025-07-04 19:32:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-04 17:32:41 +0000 |
| commit | 160960b79719e1298668a7ebba390b30b8de1080 (patch) | |
| tree | 5d5b215b045e48a7c7747d161931cf7ac7596e9d /test/require.spec.cts | |
| parent | 4e422f72fa6065db906a01836a4e76540f0f9a18 (diff) | |
| download | faker-160960b79719e1298668a7ebba390b30b8de1080.tar.xz faker-160960b79719e1298668a7ebba390b30b8de1080.zip | |
feat!: esm only (#3540)
Diffstat (limited to 'test/require.spec.cts')
| -rw-r--r-- | test/require.spec.cts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/require.spec.cts b/test/require.spec.cts index 80f708d9..c4e0d133 100644 --- a/test/require.spec.cts +++ b/test/require.spec.cts @@ -1,5 +1,5 @@ const { describe, expect, it, vi } = await import('vitest'); -const { allLocales, SimpleFaker } = require('../dist/index.cjs'); +const { allLocales, SimpleFaker } = require('../dist/index.js'); describe('require (cjs)', () => { describe.each( @@ -9,7 +9,7 @@ describe('require (cjs)', () => { ) )('locale imports', (locale) => { it(`should be possible to directly require('@faker-js/faker/locale/${locale}')`, () => { - const { faker } = require(`../dist/locale/${locale}.cjs`); + const { faker } = require(`../dist/locale/${locale}.js`); expect(faker).toBeDefined(); expect(faker.string.alpha()).toBeTypeOf('string'); |
