Skip to content

Commit

Permalink
Merge branch 'release/v0.22.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Jul 12, 2024
2 parents b5df66f + f5ceeab commit 7ef7790
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.22.2",
"version": "0.22.3",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -61,26 +61,26 @@
"prepublishOnly": "nr build && nr circles && nr test:publish",
"start": "nr watch",
"test": "vitest",
"test:browser": "BROWSER=1 vitest",
"test:browser": "PREVIEW=1 vitest",
"test:firefox": "BROWSER=firefox vitest",
"test:webkit": "BROWSER=webkit vitest",
"test:chromium": "BROWSER=chromium vitest",
"test:publish": "vitest --run",
"watch": "nr build -- --watch src"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.3",
"@antfu/eslint-config": "^2.22.0",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.14.10",
"@vitejs/plugin-vue": "^5.0.5",
"@vitest/browser": "^2.0.1",
"@vitest/coverage-v8": "^2.0.1",
"@vitest/browser": "^2.0.2",
"@vitest/coverage-v8": "^2.0.2",
"esbuild": "^0.23.0",
"eslint": "<9",
"playwright": "^1.45.1",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vitest": "^2.0.1"
"vitest": "^2.0.2"
}
}
5 changes: 3 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const config: UserConfig = {
// root: './src',
}

const isPreview = process.env.PREVIEW && valueToBooleanNotFalse(process.env.PREVIEW)
const isBrowser = process.env.BROWSER && valueToBooleanNotFalse(process.env.BROWSER)

const browserName = {
Expand All @@ -36,7 +37,7 @@ const browserName = {
firefox: 'firefox',
}[String(process.env.BROWSER).toLowerCase()] ?? 'chromium'

if (isBrowser) {
if (isBrowser || isPreview) {
console.info('BROWSER', browserName, JSON.stringify(process.env.BROWSER))
Object.assign(config, {
include: [
Expand All @@ -46,7 +47,7 @@ if (isBrowser) {
browser: {
enabled: true,
name: browserName,
provider: 'playwright', // https://playwright.dev
provider: isPreview ? 'preview' : 'playwright', // https://playwright.dev
providerOptions: {
launch: {
devtools: true,
Expand Down

0 comments on commit 7ef7790

Please sign in to comment.