[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 app/server util tests (#504)

authored by

James Garbutt and committed by
GitHub
68759aa8 d9fb143b

+11 -11
+2 -2
test/unit/install-command.spec.ts test/unit/app/utils/install-command.spec.ts
··· 5 5 getPackageSpecifier, 6 6 getExecuteCommand, 7 7 getExecuteCommandParts, 8 - } from '../../app/utils/install-command' 9 - import type { JsrPackageInfo } from '../../shared/types/jsr' 8 + } from '../../../../app/utils/install-command' 9 + import type { JsrPackageInfo } from '../../../../shared/types/jsr' 10 10 11 11 describe('install command generation', () => { 12 12 // Test fixtures
+1 -1
test/unit/install-scripts.spec.ts test/unit/app/utils/install-scripts.spec.ts
··· 1 1 import { describe, expect, it } from 'vitest' 2 - import { extractInstallScriptsInfo } from '../../app/utils/install-scripts' 2 + import { extractInstallScriptsInfo } from '../../../../app/utils/install-scripts' 3 3 4 4 describe('extractInstallScriptsInfo', () => { 5 5 it('returns null when no install scripts exist', () => {
+3 -3
test/unit/npm-utils.spec.ts test/unit/app/utils/npm.spec.ts
··· 1 1 import { describe, expect, it } from 'vitest' 2 2 3 - import { buildScopeTeam } from '../../app/utils/npm' 4 - import { validateScopeTeam } from '../../cli/src/npm-client' 5 - import { getSpdxLicenseUrl } from '../../shared/utils/spdx' 3 + import { buildScopeTeam } from '../../../../app/utils/npm' 4 + import { validateScopeTeam } from '../../../../cli/src/npm-client' 5 + import { getSpdxLicenseUrl } from '../../../../shared/utils/spdx' 6 6 7 7 describe('getSpdxLicenseUrl', () => { 8 8 it('returns SPDX URL for valid license identifiers', () => {
+1 -1
test/unit/platform-packages.spec.ts test/unit/app/utils/platform-packages.spec.ts
··· 1 1 import { describe, expect, it } from 'vitest' 2 - import { isPlatformSpecificPackage } from '../../app/utils/platform-packages' 2 + import { isPlatformSpecificPackage } from '../../../../app/utils/platform-packages' 3 3 4 4 describe('isPlatformSpecificPackage', () => { 5 5 describe('standard platform packages', () => {
+1 -1
test/unit/playground-links.spec.ts test/unit/server/utils/readme.spec.ts
··· 12 12 }) 13 13 14 14 // Import after mock is set up 15 - const { renderReadmeHtml } = await import('../../server/utils/readme') 15 + const { renderReadmeHtml } = await import('../../../../server/utils/readme') 16 16 17 17 describe('Playground Link Extraction', () => { 18 18 describe('StackBlitz', () => {
+2 -2
test/unit/run-command.spec.ts test/unit/app/utils/run-command.spec.ts
··· 5 5 getRunCommandParts, 6 6 isBinaryOnlyPackage, 7 7 isCreatePackage, 8 - } from '../../app/utils/run-command' 9 - import type { JsrPackageInfo } from '../../shared/types/jsr' 8 + } from '../../../../app/utils/run-command' 9 + import type { JsrPackageInfo } from '../../../../shared/types/jsr' 10 10 11 11 describe('executable detection and run commands', () => { 12 12 const jsrNotAvailable: JsrPackageInfo = { exists: false }
+1 -1
test/unit/versions.spec.ts test/unit/app/utils/versions.spec.ts
··· 9 9 isSameVersionGroup, 10 10 parseVersion, 11 11 sortTags, 12 - } from '../../app/utils/versions' 12 + } from '../../../../app/utils/versions' 13 13 14 14 describe('parseVersion', () => { 15 15 it('parses stable versions', () => {