aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2024-09-26 17:50:05 +0200
committerGitHub <[email protected]>2024-09-26 17:50:05 +0200
commit9537dfddba882bd93d9a429697fd44bc72428426 (patch)
treef60b5b694d5e4e8ddab228aeb20c7b7746685edc /test
parent424b120a4d94b15b6e77c04a0aaffd0016a9c870 (diff)
downloadfaker-9537dfddba882bd93d9a429697fd44bc72428426.tar.xz
faker-9537dfddba882bd93d9a429697fd44bc72428426.zip
infra: update file structure for util/internal (#3141)
Diffstat (limited to 'test')
-rw-r--r--test/internal/locale-proxy.spec.ts (renamed from test/locale-proxy.spec.ts)4
-rw-r--r--test/modules/number.spec.ts2
-rw-r--r--test/scripts/apidocs/method.example.ts2
-rw-r--r--test/scripts/apidocs/verify-jsdoc-tags.spec.ts2
-rw-r--r--test/support/seeded-runs.ts2
-rw-r--r--test/utils/__snapshots__/mersenne.spec.ts.snap (renamed from test/internal/__snapshots__/mersenne.spec.ts.snap)0
-rw-r--r--test/utils/mersenne-test-utils.ts (renamed from test/internal/mersenne-test-utils.ts)0
-rw-r--r--test/utils/mersenne.spec.ts (renamed from test/internal/mersenne.spec.ts)6
8 files changed, 9 insertions, 9 deletions
diff --git a/test/locale-proxy.spec.ts b/test/internal/locale-proxy.spec.ts
index c9c8928c..1b6e060b 100644
--- a/test/locale-proxy.spec.ts
+++ b/test/internal/locale-proxy.spec.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
-import { FakerError, en } from '../src';
-import { createLocaleProxy } from '../src/locale-proxy';
+import { FakerError, en } from '../../src';
+import { createLocaleProxy } from '../../src/internal/locale-proxy';
describe('LocaleProxy', () => {
const locale = createLocaleProxy(en);
diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts
index f318fc5b..f9adf9ff 100644
--- a/test/modules/number.spec.ts
+++ b/test/modules/number.spec.ts
@@ -1,8 +1,8 @@
import validator from 'validator';
import { describe, expect, it } from 'vitest';
import { FakerError, SimpleFaker, faker } from '../../src';
-import { MERSENNE_MAX_VALUE } from '../internal/mersenne-test-utils';
import { seededTests } from '../support/seeded-runs';
+import { MERSENNE_MAX_VALUE } from '../utils/mersenne-test-utils';
import { times } from './../support/times';
describe('number', () => {
diff --git a/test/scripts/apidocs/method.example.ts b/test/scripts/apidocs/method.example.ts
index e72f5f3f..4ecdaee1 100644
--- a/test/scripts/apidocs/method.example.ts
+++ b/test/scripts/apidocs/method.example.ts
@@ -1,7 +1,7 @@
import type { Casing, ColorFormat } from '../../../src';
import { FakerError } from '../../../src/errors/faker-error';
+import type { LiteralUnion } from '../../../src/internal/types';
import type { AlphaNumericChar } from '../../../src/modules/string';
-import type { LiteralUnion } from '../../../src/utils/types';
// explicitly export types so they show up in the docs as decomposed types
export type { NumberColorFormat, StringColorFormat } from '../../../src';
export type { AlphaNumericChar, Casing, ColorFormat, LiteralUnion };
diff --git a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
index ea5ed8b9..753ef9b3 100644
--- a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
+++ b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts
@@ -119,7 +119,7 @@ describe('verify JSDoc tags', () => {
);
if (moduleName === 'randomizer') {
- examples = `import { generateMersenne32Randomizer } from '${relativeImportPath}/internal/mersenne';
+ examples = `import { generateMersenne32Randomizer } from '${relativeImportPath}/utils/mersenne';
const randomizer = generateMersenne32Randomizer();
diff --git a/test/support/seeded-runs.ts b/test/support/seeded-runs.ts
index a05f1854..dee0051c 100644
--- a/test/support/seeded-runs.ts
+++ b/test/support/seeded-runs.ts
@@ -1,6 +1,6 @@
import { describe, expect, describe as vi_describe, it as vi_it } from 'vitest';
import type { Faker } from '../../src/faker';
-import type { Callable, MethodOf } from '../../src/utils/types';
+import type { Callable, MethodOf } from '../../src/internal/types';
export const seededRuns = [42, 1337, 1211];
diff --git a/test/internal/__snapshots__/mersenne.spec.ts.snap b/test/utils/__snapshots__/mersenne.spec.ts.snap
index c045e2e7..c045e2e7 100644
--- a/test/internal/__snapshots__/mersenne.spec.ts.snap
+++ b/test/utils/__snapshots__/mersenne.spec.ts.snap
diff --git a/test/internal/mersenne-test-utils.ts b/test/utils/mersenne-test-utils.ts
index ee7a43da..ee7a43da 100644
--- a/test/internal/mersenne-test-utils.ts
+++ b/test/utils/mersenne-test-utils.ts
diff --git a/test/internal/mersenne.spec.ts b/test/utils/mersenne.spec.ts
index f0e48bd0..5e9e4c27 100644
--- a/test/internal/mersenne.spec.ts
+++ b/test/utils/mersenne.spec.ts
@@ -1,10 +1,10 @@
import { beforeAll, beforeEach, describe, expect, it } from 'vitest';
+import { MersenneTwister19937 } from '../../src/internal/mersenne';
+import type { Randomizer } from '../../src/randomizer';
import {
- MersenneTwister19937,
generateMersenne32Randomizer,
generateMersenne53Randomizer,
-} from '../../src/internal/mersenne';
-import type { Randomizer } from '../../src/randomizer';
+} from '../../src/utils/mersenne';
import { seededRuns } from '../support/seeded-runs';
import { times } from '../support/times';
import {