From fdafaa4681da85c416098256654fe96c171a850b Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 28 Oct 2023 22:06:33 +0200 Subject: [PATCH] infra(unicorn): filename-case (#2492) --- .eslintrc.js | 21 +++++++++++++++++-- package.json | 2 +- .../apidoc/{fakerClass.ts => faker-class.ts} | 4 ++-- .../{fakerUtilities.ts => faker-utilities.ts} | 4 ++-- scripts/apidoc/generate.ts | 12 +++++------ .../{moduleMethods.ts => module-methods.ts} | 2 +- ...meterDefaults.ts => parameter-defaults.ts} | 0 scripts/apidoc/typedoc.ts | 2 +- .../apidoc/{apiDocsWriter.ts => writer.ts} | 0 ...generateLocales.ts => generate-locales.ts} | 0 src/modules/lorem/index.ts | 2 +- ...ength.ts => filter-word-list-by-length.ts} | 0 src/modules/word/index.ts | 2 +- ...ctional.spec.ts => all-functional.spec.ts} | 0 test/mersenne.spec.ts | 2 +- test/modules/airline.spec.ts | 2 +- test/modules/animal.spec.ts | 2 +- test/modules/color.spec.ts | 2 +- test/modules/commerce.spec.ts | 2 +- test/modules/company.spec.ts | 2 +- test/modules/database.spec.ts | 2 +- test/modules/datatype.spec.ts | 2 +- test/modules/date.spec.ts | 2 +- ...ance_iban.spec.ts => finance-iban.spec.ts} | 2 +- test/modules/finance.spec.ts | 2 +- test/modules/git.spec.ts | 2 +- test/modules/hacker.spec.ts | 2 +- test/modules/helpers.spec.ts | 2 +- test/modules/image.spec.ts | 2 +- test/modules/internet.spec.ts | 2 +- test/modules/location.spec.ts | 2 +- test/modules/lorem.spec.ts | 2 +- test/modules/music.spec.ts | 2 +- test/modules/number.spec.ts | 2 +- test/modules/person.spec.ts | 2 +- test/modules/phone.spec.ts | 2 +- test/modules/random.spec.ts | 2 +- test/modules/science.spec.ts | 2 +- test/modules/string.spec.ts | 2 +- test/modules/system.spec.ts | 2 +- test/modules/vehicle.spec.ts | 2 +- test/modules/word.spec.ts | 4 ++-- test/scripts/apidoc/module.spec.ts | 2 +- .../support/{seededRuns.ts => seeded-runs.ts} | 0 44 files changed, 64 insertions(+), 47 deletions(-) rename scripts/apidoc/{fakerClass.ts => faker-class.ts} (94%) rename scripts/apidoc/{fakerUtilities.ts => faker-utilities.ts} (91%) rename scripts/apidoc/{moduleMethods.ts => module-methods.ts} (98%) rename scripts/apidoc/{parameterDefaults.ts => parameter-defaults.ts} (100%) rename scripts/apidoc/{apiDocsWriter.ts => writer.ts} (100%) rename scripts/{generateLocales.ts => generate-locales.ts} (100%) rename src/modules/word/{filterWordListByLength.ts => filter-word-list-by-length.ts} (100%) rename test/{all_functional.spec.ts => all-functional.spec.ts} (100%) rename test/modules/{finance_iban.spec.ts => finance-iban.spec.ts} (99%) rename test/support/{seededRuns.ts => seeded-runs.ts} (100%) diff --git a/.eslintrc.js b/.eslintrc.js index 5f72451ba2f..28d38cf24ad 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,7 +46,6 @@ module.exports = defineConfig({ // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. 'unicorn/better-regex': 'off', 'unicorn/consistent-function-scoping': 'off', - 'unicorn/filename-case': 'off', 'unicorn/import-style': 'off', 'unicorn/no-array-callback-reference': 'off', 'unicorn/no-array-reduce': 'off', @@ -139,8 +138,26 @@ module.exports = defineConfig({ }, }, { - files: ['src/locales/**/*.ts'], + files: ['src/locale/**/*.ts'], rules: { + 'unicorn/filename-case': 'off', // our locale files have a custom naming scheme + }, + }, + { + files: ['src/definitions/**/*.ts', 'src/locales/**/*.ts'], + rules: { + 'unicorn/filename-case': [ + 'error', + { + case: 'snakeCase', + // TODO @ST-DDT 2023-10-21: rename the definitions in v9 + ignore: [ + /chemicalElement\.ts$/, + /directoryPaths\.ts$/, + /mimeTypes\.ts$/, + ], + }, + ], 'unicorn/text-encoding-identifier-case': 'off', }, }, diff --git a/package.json b/package.json index f5288b61788..6ea00720033 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "build": "run-s build:clean build:code build:types", "generate": "run-s generate:locales generate:api-docs", "generate:api-docs": "tsx ./scripts/apidoc.ts", - "generate:locales": "tsx ./scripts/generateLocales.ts", + "generate:locales": "tsx ./scripts/generate-locales.ts", "docs:build": "run-s docs:prepare docs:build:run", "docs:build:run": "vitepress build docs", "docs:build:ci": "run-s build docs:build", diff --git a/scripts/apidoc/fakerClass.ts b/scripts/apidoc/faker-class.ts similarity index 94% rename from scripts/apidoc/fakerClass.ts rename to scripts/apidoc/faker-class.ts index ea190cc7e7c..44648831142 100644 --- a/scripts/apidoc/fakerClass.ts +++ b/scripts/apidoc/faker-class.ts @@ -1,11 +1,11 @@ import type { DeclarationReflection, ProjectReflection } from 'typedoc'; import { ReflectionKind } from 'typedoc'; import type { Method } from '../../docs/.vitepress/components/api-docs/method'; -import { writeApiDocsModule } from './apiDocsWriter'; -import { analyzeModule, processModuleMethods } from './moduleMethods'; +import { analyzeModule, processModuleMethods } from './module-methods'; import { analyzeSignature } from './signature'; import { extractModuleFieldName, selectApiSignature } from './typedoc'; import type { ModuleSummary } from './utils'; +import { writeApiDocsModule } from './writer'; export async function processFakerClasses( project: ProjectReflection diff --git a/scripts/apidoc/fakerUtilities.ts b/scripts/apidoc/faker-utilities.ts similarity index 91% rename from scripts/apidoc/fakerUtilities.ts rename to scripts/apidoc/faker-utilities.ts index d164857b8cc..0da03581283 100644 --- a/scripts/apidoc/fakerUtilities.ts +++ b/scripts/apidoc/faker-utilities.ts @@ -1,10 +1,10 @@ import type { DeclarationReflection, ProjectReflection } from 'typedoc'; import { ReflectionKind } from 'typedoc'; import type { Method } from '../../docs/.vitepress/components/api-docs/method'; -import { writeApiDocsModule } from './apiDocsWriter'; -import { processMethods } from './moduleMethods'; +import { processMethods } from './module-methods'; import { selectApiSignature } from './typedoc'; import type { ModuleSummary } from './utils'; +import { writeApiDocsModule } from './writer'; export async function processFakerUtilities( project: ProjectReflection diff --git a/scripts/apidoc/generate.ts b/scripts/apidoc/generate.ts index aa33a46e831..316757cc9b1 100644 --- a/scripts/apidoc/generate.ts +++ b/scripts/apidoc/generate.ts @@ -1,15 +1,15 @@ import { resolve } from 'node:path'; +import { processFakerClasses, processFakerRandomizer } from './faker-class'; +import { processFakerUtilities } from './faker-utilities'; +import { processModules } from './module-methods'; +import { loadProject } from './typedoc'; +import { pathOutputDir } from './utils'; import { writeApiDiffIndex, writeApiPagesIndex, writeApiSearchIndex, writeSourceBaseUrl, -} from './apiDocsWriter'; -import { processFakerClasses, processFakerRandomizer } from './fakerClass'; -import { processFakerUtilities } from './fakerUtilities'; -import { processModules } from './moduleMethods'; -import { loadProject } from './typedoc'; -import { pathOutputDir } from './utils'; +} from './writer'; const pathOutputJson = resolve(pathOutputDir, 'typedoc.json'); diff --git a/scripts/apidoc/moduleMethods.ts b/scripts/apidoc/module-methods.ts similarity index 98% rename from scripts/apidoc/moduleMethods.ts rename to scripts/apidoc/module-methods.ts index 33255a170cb..772a72360bc 100644 --- a/scripts/apidoc/moduleMethods.ts +++ b/scripts/apidoc/module-methods.ts @@ -4,7 +4,6 @@ import type { SignatureReflection, } from 'typedoc'; import type { Method } from '../../docs/.vitepress/components/api-docs/method'; -import { writeApiDocsModule } from './apiDocsWriter'; import { codeToHtml } from './markdown'; import { analyzeSignature } from './signature'; import { @@ -18,6 +17,7 @@ import { } from './typedoc'; import type { ModuleSummary } from './utils'; import { adjustUrls } from './utils'; +import { writeApiDocsModule } from './writer'; /** * Analyzes and writes the documentation for modules and their methods such as `faker.animal.cat()`. diff --git a/scripts/apidoc/parameterDefaults.ts b/scripts/apidoc/parameter-defaults.ts similarity index 100% rename from scripts/apidoc/parameterDefaults.ts rename to scripts/apidoc/parameter-defaults.ts diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 9fa1fdadaf9..0d3799df62d 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -19,7 +19,7 @@ import { DefaultParameterAwareSerializer, parameterDefaultReader, patchProjectParameterDefaults, -} from './parameterDefaults'; +} from './parameter-defaults'; import { mapByName } from './utils'; type CommentHolder = Pick; diff --git a/scripts/apidoc/apiDocsWriter.ts b/scripts/apidoc/writer.ts similarity index 100% rename from scripts/apidoc/apiDocsWriter.ts rename to scripts/apidoc/writer.ts diff --git a/scripts/generateLocales.ts b/scripts/generate-locales.ts similarity index 100% rename from scripts/generateLocales.ts rename to scripts/generate-locales.ts diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index 0f3423bc880..82e557e607c 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -1,6 +1,6 @@ import type { Faker } from '../..'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; -import { filterWordListByLength } from '../word/filterWordListByLength'; +import { filterWordListByLength } from '../word/filter-word-list-by-length'; /** * Module to generate random texts and words. diff --git a/src/modules/word/filterWordListByLength.ts b/src/modules/word/filter-word-list-by-length.ts similarity index 100% rename from src/modules/word/filterWordListByLength.ts rename to src/modules/word/filter-word-list-by-length.ts diff --git a/src/modules/word/index.ts b/src/modules/word/index.ts index 7cc4729a08f..93c56829f7d 100644 --- a/src/modules/word/index.ts +++ b/src/modules/word/index.ts @@ -1,7 +1,7 @@ import type { Faker } from '../..'; import { FakerError } from '../../errors/faker-error'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; -import { filterWordListByLength } from './filterWordListByLength'; +import { filterWordListByLength } from './filter-word-list-by-length'; /** * Module to return various types of words. diff --git a/test/all_functional.spec.ts b/test/all-functional.spec.ts similarity index 100% rename from test/all_functional.spec.ts rename to test/all-functional.spec.ts diff --git a/test/mersenne.spec.ts b/test/mersenne.spec.ts index 6d3b9b59501..6c7d5a18579 100644 --- a/test/mersenne.spec.ts +++ b/test/mersenne.spec.ts @@ -1,7 +1,7 @@ import { beforeAll, beforeEach, describe, expect, it } from 'vitest'; import { generateMersenne32Randomizer } from '../src/internal/mersenne'; import type { Randomizer } from '../src/randomizer'; -import { seededRuns } from './support/seededRuns'; +import { seededRuns } from './support/seeded-runs'; import { times } from './support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/modules/airline.spec.ts b/test/modules/airline.spec.ts index 45737f5abe1..5ac05a5b82f 100644 --- a/test/modules/airline.spec.ts +++ b/test/modules/airline.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { Aircraft, faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/animal.spec.ts b/test/modules/animal.spec.ts index 26344302f63..ed9aa8222de 100644 --- a/test/modules/animal.spec.ts +++ b/test/modules/animal.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/color.spec.ts b/test/modules/color.spec.ts index 354233f20f8..2bcb5734c0b 100644 --- a/test/modules/color.spec.ts +++ b/test/modules/color.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { CssFunction, CssSpace, faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/commerce.spec.ts b/test/modules/commerce.spec.ts index 6ccc18f7b5e..e4a5c821660 100644 --- a/test/modules/commerce.spec.ts +++ b/test/modules/commerce.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/company.spec.ts b/test/modules/company.spec.ts index d122238c877..b4a45bd623a 100644 --- a/test/modules/company.spec.ts +++ b/test/modules/company.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/database.spec.ts b/test/modules/database.spec.ts index a94012e6694..fd386a682fc 100644 --- a/test/modules/database.spec.ts +++ b/test/modules/database.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/datatype.spec.ts b/test/modules/datatype.spec.ts index 964636bc995..db676fdc333 100644 --- a/test/modules/datatype.spec.ts +++ b/test/modules/datatype.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker, FakerError } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/modules/date.spec.ts b/test/modules/date.spec.ts index e3f7a109a01..715d714af5d 100644 --- a/test/modules/date.spec.ts +++ b/test/modules/date.spec.ts @@ -1,6 +1,6 @@ import { afterEach, describe, expect, it } from 'vitest'; import { faker, fakerAZ, FakerError } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const converterMap = [ diff --git a/test/modules/finance_iban.spec.ts b/test/modules/finance-iban.spec.ts similarity index 99% rename from test/modules/finance_iban.spec.ts rename to test/modules/finance-iban.spec.ts index c2dc12a7819..145a4751b50 100644 --- a/test/modules/finance_iban.spec.ts +++ b/test/modules/finance-iban.spec.ts @@ -2,7 +2,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; import ibanLib from '../../src/modules/finance/iban'; -import { times } from './../support/times'; +import { times } from '../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index a0cfbb2ecef..93c6a0fcbd4 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -5,7 +5,7 @@ import { faker, fakerZH_CN } from '../../src'; import { FakerError } from '../../src/errors/faker-error'; import ibanLib from '../../src/modules/finance/iban'; import { luhnCheck } from '../../src/modules/helpers/luhn-check'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/git.spec.ts b/test/modules/git.spec.ts index 2b721e8bf71..b120cc09cd8 100644 --- a/test/modules/git.spec.ts +++ b/test/modules/git.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/hacker.spec.ts b/test/modules/hacker.spec.ts index 62821283e0a..e1dbd190b4a 100644 --- a/test/modules/hacker.spec.ts +++ b/test/modules/hacker.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 0564a794b08..e683d1d818c 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; import { faker, FakerError } from '../../src'; import { luhnCheck } from '../../src/modules/helpers/luhn-check'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; import './../vitest-extensions'; diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index d2c0152fa53..938799efc72 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -1,7 +1,7 @@ import isDataURI from 'validator/lib/isDataURI'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; describe('image', () => { seededTests(faker, 'image', (t) => { diff --git a/test/modules/internet.spec.ts b/test/modules/internet.spec.ts index 79d329de3ea..40518833b7c 100644 --- a/test/modules/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { allFakers, faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/location.spec.ts b/test/modules/location.spec.ts index 054669a5796..cb020418292 100644 --- a/test/modules/location.spec.ts +++ b/test/modules/location.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker, fakerEN_CA, fakerEN_US, FakerError } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; function degreesToRadians(degrees: number) { diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 08a209c655b..3a2062de154 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/music.spec.ts b/test/modules/music.spec.ts index 6f12734be2e..a34091e873e 100644 --- a/test/modules/music.spec.ts +++ b/test/modules/music.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/number.spec.ts b/test/modules/number.spec.ts index 3033c63b0f6..66018ee61bd 100644 --- a/test/modules/number.spec.ts +++ b/test/modules/number.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker, FakerError } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; describe('number', () => { seededTests(faker, 'number', (t) => { diff --git a/test/modules/person.spec.ts b/test/modules/person.spec.ts index 7b32af9d05f..14bedf1d690 100644 --- a/test/modules/person.spec.ts +++ b/test/modules/person.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker, fakerAZ, fakerMK, fakerUK, Sex } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/phone.spec.ts b/test/modules/phone.spec.ts index ec561acf222..4ee4241703d 100644 --- a/test/modules/phone.spec.ts +++ b/test/modules/phone.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; import { luhnCheck } from '../../src/modules/helpers/luhn-check'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 25; diff --git a/test/modules/random.spec.ts b/test/modules/random.spec.ts index 80fa10aa703..f6fe2234bfb 100644 --- a/test/modules/random.spec.ts +++ b/test/modules/random.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { Faker, faker, FakerError, fakerZH_CN } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/science.spec.ts b/test/modules/science.spec.ts index 8ca6d9f5c41..80002c1968f 100644 --- a/test/modules/science.spec.ts +++ b/test/modules/science.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/string.spec.ts b/test/modules/string.spec.ts index 9d2debba257..a4f7ecef0c5 100644 --- a/test/modules/string.spec.ts +++ b/test/modules/string.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker, FakerError } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/system.spec.ts b/test/modules/system.spec.ts index b325468d6f8..70a53266000 100644 --- a/test/modules/system.spec.ts +++ b/test/modules/system.spec.ts @@ -1,7 +1,7 @@ import validator from 'validator'; import { describe, expect, it } from 'vitest'; import { faker, fakerSK } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/vehicle.spec.ts b/test/modules/vehicle.spec.ts index f691a1fa441..93f93b91626 100644 --- a/test/modules/vehicle.spec.ts +++ b/test/modules/vehicle.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { seededTests } from './../support/seededRuns'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/modules/word.spec.ts b/test/modules/word.spec.ts index 08fbca4d3c4..121cce84f8b 100644 --- a/test/modules/word.spec.ts +++ b/test/modules/word.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; import { faker } from '../../src'; -import { filterWordListByLength } from '../../src/modules/word/filterWordListByLength'; -import { seededTests } from './../support/seededRuns'; +import { filterWordListByLength } from '../../src/modules/word/filter-word-list-by-length'; +import { seededTests } from '../support/seeded-runs'; import { times } from './../support/times'; const NON_SEEDED_BASED_RUN = 5; diff --git a/test/scripts/apidoc/module.spec.ts b/test/scripts/apidoc/module.spec.ts index 11a957aa849..508c9de36af 100644 --- a/test/scripts/apidoc/module.spec.ts +++ b/test/scripts/apidoc/module.spec.ts @@ -1,6 +1,6 @@ import { beforeAll, describe, expect, it } from 'vitest'; import { initMarkdownRenderer } from '../../../scripts/apidoc/markdown'; -import { analyzeModule } from '../../../scripts/apidoc/moduleMethods'; +import { analyzeModule } from '../../../scripts/apidoc/module-methods'; import * as ModuleTests from './module.example'; import { loadExampleModules } from './utils'; diff --git a/test/support/seededRuns.ts b/test/support/seeded-runs.ts similarity index 100% rename from test/support/seededRuns.ts rename to test/support/seeded-runs.ts