[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: move shared tests (#512)

authored by

James Garbutt and committed by
GitHub
edbd6737 2c83358c

+4 -4
+1 -1
test/unit/npm-registry.spec.ts test/unit/shared/types/index.spec.ts
··· 1 1 import { describe, expect, it } from 'vitest' 2 - import type { NpmPackage, NpmSearchResponse } from '../../shared/types' 2 + import type { NpmPackage, NpmSearchResponse } from '../../../../shared/types' 3 3 4 4 describe('npm registry types', () => { 5 5 it('should correctly type a package response', () => {
+1 -1
test/unit/package-analysis.spec.ts test/unit/shared/utils/package-analysis.spec.ts
··· 7 7 getCreateShortName, 8 8 getTypesPackageName, 9 9 hasBuiltInTypes, 10 - } from '../../shared/utils/package-analysis' 10 + } from '../../../../shared/utils/package-analysis' 11 11 12 12 describe('detectModuleFormat', () => { 13 13 it('detects ESM from type: module', () => {
+1 -1
test/unit/parse-package-param.spec.ts test/unit/shared/utils/parse-package-param.spec.ts
··· 1 1 import { describe, expect, it } from 'vitest' 2 - import { parsePackageParam } from '../../shared/utils/parse-package-param' 2 + import { parsePackageParam } from '../../../../shared/utils/parse-package-param' 3 3 4 4 describe('parsePackageParam', () => { 5 5 describe('unscoped packages', () => {
test/unit/preferences.spec.ts test/unit/shared/types/preferences.spec.ts
test/unit/readme-url-resolution.spec.ts test/unit/shared/utils/git-providers.spec.ts
+1 -1
test/unit/severity.spec.ts test/unit/shared/utils/severity.spec.ts
··· 4 4 SEVERITY_TEXT_COLORS, 5 5 SEVERITY_BADGE_COLORS, 6 6 getHighestSeverity, 7 - } from '../../shared/utils/severity' 7 + } from '../../../../shared/utils/severity' 8 8 9 9 describe('severity utils', () => { 10 10 describe('SEVERITY_COLORS', () => {
test/unit/spdx.spec.ts test/unit/shared/utils/spdx.spec.ts
test/unit/url-comparison.spec.ts test/unit/shared/utils/url.spec.ts