Skip to content

Commit edbd673

Browse files
authored
test: move shared tests (npmx-dev#512)
1 parent 2c83358 commit edbd673

8 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import type { NpmPackage, NpmSearchResponse } from '../../shared/types'
2+
import type { NpmPackage, NpmSearchResponse } from '../../../../shared/types'
33

44
describe('npm registry types', () => {
55
it('should correctly type a package response', () => {
File renamed without changes.
File renamed without changes.

test/unit/package-analysis.spec.ts renamed to test/unit/shared/utils/package-analysis.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getCreateShortName,
88
getTypesPackageName,
99
hasBuiltInTypes,
10-
} from '../../shared/utils/package-analysis'
10+
} from '../../../../shared/utils/package-analysis'
1111

1212
describe('detectModuleFormat', () => {
1313
it('detects ESM from type: module', () => {

test/unit/parse-package-param.spec.ts renamed to test/unit/shared/utils/parse-package-param.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2-
import { parsePackageParam } from '../../shared/utils/parse-package-param'
2+
import { parsePackageParam } from '../../../../shared/utils/parse-package-param'
33

44
describe('parsePackageParam', () => {
55
describe('unscoped packages', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
SEVERITY_TEXT_COLORS,
55
SEVERITY_BADGE_COLORS,
66
getHighestSeverity,
7-
} from '../../shared/utils/severity'
7+
} from '../../../../shared/utils/severity'
88

99
describe('severity utils', () => {
1010
describe('SEVERITY_COLORS', () => {

0 commit comments

Comments
 (0)