-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/update-storybook-to-v8.4
- Loading branch information
Showing
33 changed files
with
1,533 additions
and
1,675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import process from 'node:process'; | ||
import { expect } from '@playwright/test'; | ||
import { setupTest } from '../_setup/suite.ts'; | ||
import { officialAdders } from '../../index.ts'; | ||
import type { AddonMap, OptionMap } from 'sv'; | ||
|
||
const windowsCI = process.env.CI && process.platform === 'win32'; | ||
const addons = officialAdders.reduce<AddonMap>((addonMap, addon) => { | ||
if (addon.id === 'storybook' && windowsCI) return addonMap; | ||
addonMap[addon.id] = addon; | ||
return addonMap; | ||
}, {}); | ||
|
||
const defaultOptions = officialAdders.reduce<OptionMap<typeof addons>>((options, addon) => { | ||
options[addon.id] = {}; | ||
return options; | ||
}, {}); | ||
|
||
const { test, variants, prepareServer } = setupTest(addons); | ||
|
||
const kitOnly = variants.filter((v) => v.startsWith('kit')); | ||
test.concurrent.for(kitOnly)('run all addons - %s', async (variant, { page, ...ctx }) => { | ||
const cwd = await ctx.run(variant, defaultOptions); | ||
|
||
const { close } = await prepareServer({ cwd, page }); | ||
// kill server process when we're done | ||
ctx.onTestFinished(async () => await close()); | ||
|
||
expect(true).toBe(true); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.