Skip to content

Commit

Permalink
avoid bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel3108 committed Feb 2, 2025
1 parent dbff028 commit de838ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/addons/_tests/_setup/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ import path from 'node:path';
import { execSync } from 'node:child_process';
import * as vitest from 'vitest';
import { installAddon, type AddonMap, type OptionMap } from 'sv';
import { createProject, startPreview, type CreateProject, type ProjectVariant } from 'sv/testing';
import {
createProject,
startPreview,
allowExecutingPostinstallScripts,
type CreateProject,
type ProjectVariant
} from 'sv/testing';
import { chromium, type Browser, type Page } from '@playwright/test';
import { allowExecutingPostinstallScripts } from '../../../cli/utils/package-manager.ts';

const cwd = vitest.inject('testDir');
const templatesDir = vitest.inject('templatesDir');
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/lib/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import degit from 'degit';
import { exec } from 'tinyexec';
import { create } from '@sveltejs/create';
import pstree, { type PS } from 'ps-tree';
import { allowExecutingPostinstallScripts } from '../utils/package-manager.ts';

export { allowExecutingPostinstallScripts };
export type ProjectVariant = 'kit-js' | 'kit-ts' | 'vite-js' | 'vite-ts';

const TEMPLATES_DIR = '.templates';
Expand Down

0 comments on commit de838ab

Please sign in to comment.