Skip to content

Libraries that utilize monorepos don't have their svelte dependencies replaced during tests #14

Open
@AdrianGonz97

Description

@AdrianGonz97

While investigating #13, I noticed that libraries who utilize monorepos aren't getting their svelte dependencies (like @sveltejs/kit) replaced. e.g. Skeleton and Melt both use SK v1, yet Melt fails and Skeleton does not.

Here are two more libraries that I used to test locally to confirm (they both also use SK v1):

Test for bits-ui (normal repo, fails):

// bits-ui.ts
import { runInRepo } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
	await runInRepo({
		...options,
		repo: 'huntabyte/bits-ui',
		branch: 'main',
		test: 'pnpm test',
	})
}

Test for svelte-ux (monorepo, passes):

// svelte-ux.ts
import { runInRepo } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
	await runInRepo({
		...options,
		repo: 'techniq/svelte-ux',
		branch: 'main',
		test: 'pnpm test:unit',
	})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions