-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass Kitbook defaults to playwright tests and don't clear snapshots a…
…s no longer needed
- Loading branch information
Showing
8 changed files
with
30 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { expect, test } from '@playwright/test' | ||
import { clearSnapshots, getVariants, runComponentTests } from '../src/lib/test' | ||
import { getVariants, runComponentTests } from '../src/lib/test' | ||
import kitbookConfig from '../kitbook.config' | ||
|
||
const skipFiles = [ | ||
'/docs/1-variants/DefaultSlot', | ||
'/lib/routes/sandbox/[...file]/+page', | ||
] | ||
|
||
clearSnapshots() | ||
const variantModules = await getVariants({ skipFiles }) | ||
runComponentTests({ test, expect, kitbookConfig, variantModules }) |
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
9 changes: 2 additions & 7 deletions
9
packages/kitbook/src/lib/plugins/vite/mergeUserSettingsWithDefaults.ts
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { clearSnapshots, getVariants, runComponentTests } from 'kitbook/test' | ||
import { getVariants, runComponentTests } from 'kitbook/test' | ||
import { expect, test } from '@playwright/test' | ||
import kitbookConfig from '../kitbook.config' | ||
|
||
clearSnapshots() | ||
const variantModules = await getVariants() | ||
runComponentTests({ test, expect, kitbookConfig, variantModules }) |
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
cfd3bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitbook – ./packages/kitbook
kitbook-git-main-polylingual.vercel.app
kitbook.vercel.app
kitbook-polylingual.vercel.app
cfd3bca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kitbook-template – ./packages/template
kitbook-template-git-main-polylingual.vercel.app
kitbook-template.vercel.app
kitbook-template-polylingual.vercel.app