Skip to content

Commit

Permalink
refactor: 💡 change "models" folder name to "constants"
Browse files Browse the repository at this point in the history
more descriptive name
  • Loading branch information
tal-rofe committed Apr 16, 2023
1 parent faa640d commit a5dcbab
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/utils/configuration.ts
@@ -1,10 +1,10 @@
import { cosmiconfig } from 'cosmiconfig';
import TypeScriptLoader from 'cosmiconfig-typescript-loader';

import { DEFAULT_CONFIGURATION } from '../models/configuration';
import { DEFAULT_CONFIGURATION } from '../constants/configuration';
import type { IConfiguration } from '../interfaces/configuration';
import { validateConfiguration, validateEnvConfiguration } from '../validators/configuration';
import { CONFIGURATION_MODULE_NAME, SEARCH_PLACES } from '../models/cosmiconfig';
import { CONFIGURATION_MODULE_NAME, SEARCH_PLACES } from '../constants/cosmiconfig';

/**
* The function sets a default configuration to work with,
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/configuration.spec.ts
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, afterEach, vi } from 'vitest';
import { cosmiconfig } from 'cosmiconfig';

import { getConfiguration } from '@/utils/configuration';
import { DEFAULT_CONFIGURATION } from '@/models/configuration';
import { DEFAULT_CONFIGURATION } from '@/constants/configuration';
import { validateConfiguration, validateEnvConfiguration } from '@/validators/configuration';

vi.mock('cosmiconfig');
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/git-info.spec.ts
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, vi } from 'vitest';

import { asyncExec } from '@/utils/os';
import { getTicketIdFromBranchName, shouldValidateTicketId } from '@/utils/git-info';
import { TICKET_ID_REGEX } from '@/models/ticket-id';
import { TICKET_ID_REGEX } from '@/constants/ticket-id';

vi.mock('@/utils/os');

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.paths.json
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"paths": {
"@/utils/*": ["src/utils/*"],
"@/models/*": ["src/models/*"],
"@/constants/*": ["src/constants/*"],
"@/interfaces/*": ["src/interfaces/*"],
"@/validators/*": ["src/validators/*"],
"@/pipes/*": ["src/pipes/*"]
Expand Down

0 comments on commit a5dcbab

Please sign in to comment.