Skip to content

Commit 68759aa

Browse files
authored
test: move app/server util tests (#504)
1 parent d9fb143 commit 68759aa

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

test/unit/install-command.spec.ts renamed to test/unit/app/utils/install-command.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
getPackageSpecifier,
66
getExecuteCommand,
77
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'
1010

1111
describe('install command generation', () => {
1212
// Test fixtures

test/unit/install-scripts.spec.ts renamed to test/unit/app/utils/install-scripts.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 { extractInstallScriptsInfo } from '../../app/utils/install-scripts'
2+
import { extractInstallScriptsInfo } from '../../../../app/utils/install-scripts'
33

44
describe('extractInstallScriptsInfo', () => {
55
it('returns null when no install scripts exist', () => {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { describe, expect, it } from 'vitest'
22

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'
66

77
describe('getSpdxLicenseUrl', () => {
88
it('returns SPDX URL for valid license identifiers', () => {

test/unit/platform-packages.spec.ts renamed to test/unit/app/utils/platform-packages.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 { isPlatformSpecificPackage } from '../../app/utils/platform-packages'
2+
import { isPlatformSpecificPackage } from '../../../../app/utils/platform-packages'
33

44
describe('isPlatformSpecificPackage', () => {
55
describe('standard platform packages', () => {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
getRunCommandParts,
66
isBinaryOnlyPackage,
77
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'
1010

1111
describe('executable detection and run commands', () => {
1212
const jsrNotAvailable: JsrPackageInfo = { exists: false }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
isSameVersionGroup,
1010
parseVersion,
1111
sortTags,
12-
} from '../../app/utils/versions'
12+
} from '../../../../app/utils/versions'
1313

1414
describe('parseVersion', () => {
1515
it('parses stable versions', () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ beforeAll(() => {
1212
})
1313

1414
// Import after mock is set up
15-
const { renderReadmeHtml } = await import('../../server/utils/readme')
15+
const { renderReadmeHtml } = await import('../../../../server/utils/readme')
1616

1717
describe('Playground Link Extraction', () => {
1818
describe('StackBlitz', () => {

0 commit comments

Comments
 (0)