Skip to content

Commit 5ebcd6f

Browse files
committed
refactor: rename test-utils to utils and update import paths
1 parent 8e2aca8 commit 5ebcd6f

19 files changed

+154
-154
lines changed

.codacy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ engines:
22
duplication:
33
enabled: true
44
exclude_paths:
5-
- 'test/**'
5+
- 'tests/**'
66
metric:
77
enabled: true
88
exclude_paths:
9-
- 'test/**'
9+
- 'tests/**'

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default [
2424
},
2525
},
2626
{
27-
files: ['test/**/*.js'],
27+
files: ['tests/**/*.js'],
2828
// tests run under vitest/jest-like globals
2929
languageOptions: {
3030
globals: {

tests/enforce-app-structure.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect, beforeEach, vi } from 'vitest'
22
import fs from 'fs'
33
import appStructureRule from '../src/rules/enforce-app-structure.js'
4-
import { setupTest, runRule, createMockFileSystem } from './test-utils.js'
4+
import { setupTest, runRule, createMockFileSystem } from './utils'
55

66
describe('enforce-app-structure rule', () => {
77
beforeEach(setupTest)

tests/enforce-feature-exports.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect, beforeEach, vi } from 'vitest'
22
import fs from 'fs'
33
import featureStructureRule from '../src/rules/enforce-feature-exports.js'
4-
import { setupTest, runRule, createMockFileSystem } from './test-utils.js'
4+
import { setupTest, runRule, createMockFileSystem } from './utils'
55

66
describe('enforce-feature-exports rule', () => {
77
beforeEach(setupTest)

tests/enforce-import-boundaries.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, beforeEach } from 'vitest'
22
import plugin from '../src/index.js'
3-
import { setupRuleTester } from './test-utils.js'
3+
import { setupRuleTester } from './utils'
44

55
describe('vue-modular/enforce-import-boundaries rule', () => {
66
let ruleTester

tests/enforce-module-exports.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect, beforeEach, vi } from 'vitest'
22
import fs from 'fs'
33
import moduleStructureRule from '../src/rules/enforce-module-exports.js'
4-
import { setupTest, runRule, createMockFileSystem } from './test-utils.js'
4+
import { setupTest, runRule, createMockFileSystem } from './utils'
55

66
describe('enforce-module-exports rule', () => {
77
beforeEach(setupTest)

tests/enforce-src-structure.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect, beforeEach, vi } from 'vitest'
22
import fs from 'fs'
33
import srcStructureRule, { resetSession } from '../src/rules/enforce-src-structure.js'
4-
import { setupTestWithReset, createContext, runRule } from './test-utils.js'
4+
import { setupTestWithReset, createContext, runRule } from './utils'
55

66
describe('enforce-src-structure rule', () => {
77
beforeEach(setupTestWithReset(resetSession))

tests/no-business-logic-in-ui-kit.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect, beforeEach } from 'vitest'
22
import plugin from '../src/index.js'
3-
import { setupRuleTester } from './test-utils.js'
3+
import { setupRuleTester } from './utils'
44

55
describe('vue-modular/no-business-logic-in-ui-kit rule', () => {
66
let ruleTester

tests/no-cross-feature-imports.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect, beforeEach } from 'vitest'
22
import plugin from '../src/index.js'
3-
import { setupRuleTester } from './test-utils.js'
3+
import { setupRuleTester } from './utils'
44

55
describe('vue-modular/no-cross-feature-imports rule', () => {
66
let ruleTester

tests/no-cross-module-imports.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, beforeEach } from 'vitest'
22
import plugin from '../src/index.js'
3-
import { setupRuleTester } from './test-utils.js'
3+
import { setupRuleTester } from './utils'
44

55
describe('vue-modular/no-cross-module-imports rule', () => {
66
let ruleTester

0 commit comments

Comments
 (0)