Skip to content

Commit 1f151da

Browse files
committed
esm-with-tsup-that-supports-cjs
1 parent ed51481 commit 1f151da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/locale-imports.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { keys } from '../src/internal/keys';
66
describe.each(keys(allLocales))('locale imports', (locale) => {
77
it(`should be possible to directly require('@faker-js/faker/locale/${locale}')`, () => {
88
// eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module
9-
const { faker } = require(`../dist/locale/${locale}`) as {
9+
const { faker } = require(`../dist/locale/${locale}.cjs`) as {
1010
faker: Faker;
1111
};
1212

0 commit comments

Comments
 (0)