-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b9de7
commit 0c022d9
Showing
7 changed files
with
139 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.frag |
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,12 @@ | ||
{ | ||
"plugins": ["prettier-plugin-svelte"], | ||
"printWidth": 80, | ||
"tabWidth": 4, | ||
"semi": true, | ||
"singleQuote": false, | ||
"quoteProps": "consistent", | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "auto" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,89 +1,88 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import { defineConfig, devices } from "@playwright/test"; | ||
|
||
// Apparently, Chromium browsers need to be explicitly told to use GPU acceleration in headless mode, | ||
// and software rendering creates slightly different results for WebGL in noise and such, | ||
// while WebGPU has no software fallback at all. | ||
const chromiumHardware = { | ||
args: [ | ||
"--enable-gpu", | ||
], | ||
args: ["--enable-gpu"], | ||
}; | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
testDir: './tests', | ||
snapshotPathTemplate: '{testDir}/.generated-screenshots/{testFilePath}/{arg}{ext}', | ||
/* Run tests in files in parallel */ | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
/* Retry on CI only */ | ||
retries: process.env.CI ? 2 : 0, | ||
/* Opt out of parallel tests on CI. */ | ||
workers: process.env.CI ? 1 : undefined, | ||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
reporter: 'html', | ||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
use: { | ||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
trace: 'on-first-retry', | ||
testDir: "./tests", | ||
snapshotPathTemplate: | ||
"{testDir}/.generated-screenshots/{testFilePath}/{arg}{ext}", | ||
/* Run tests in files in parallel */ | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
/* Retry on CI only */ | ||
retries: process.env.CI ? 2 : 0, | ||
/* Opt out of parallel tests on CI. */ | ||
workers: process.env.CI ? 1 : undefined, | ||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
reporter: "html", | ||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
use: { | ||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
trace: "on-first-retry", | ||
|
||
contextOptions: { | ||
// Disable animations so screenshots are comparable | ||
reducedMotion: 'reduce', | ||
contextOptions: { | ||
// Disable animations so screenshots are comparable | ||
reducedMotion: "reduce", | ||
}, | ||
}, | ||
}, | ||
|
||
projects: [ | ||
{ | ||
name: 'Firefox', | ||
use: { | ||
...devices['Desktop Firefox'], | ||
}, | ||
}, | ||
{ | ||
name: 'Microsoft Edge', | ||
use: { | ||
...devices['Desktop Edge'], | ||
channel: 'msedge', | ||
launchOptions: chromiumHardware, | ||
}, | ||
}, | ||
{ | ||
name: 'Google Chrome', | ||
use: { | ||
...devices['Desktop Chrome'], | ||
channel: 'chrome', | ||
launchOptions: chromiumHardware, | ||
}, | ||
}, | ||
/* TODO: Test these as well */ | ||
// { | ||
// name: 'Chromium', | ||
// use: { | ||
// ...devices['Desktop Chrome'], | ||
// launchOptions: chromiumHardware, | ||
// }, | ||
// }, | ||
// { | ||
// name: 'WebKit', | ||
// use: { ...devices['Desktop Safari'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
], | ||
projects: [ | ||
{ | ||
name: "Firefox", | ||
use: { | ||
...devices["Desktop Firefox"], | ||
}, | ||
}, | ||
{ | ||
name: "Microsoft Edge", | ||
use: { | ||
...devices["Desktop Edge"], | ||
channel: "msedge", | ||
launchOptions: chromiumHardware, | ||
}, | ||
}, | ||
{ | ||
name: "Google Chrome", | ||
use: { | ||
...devices["Desktop Chrome"], | ||
channel: "chrome", | ||
launchOptions: chromiumHardware, | ||
}, | ||
}, | ||
/* TODO: Test these as well */ | ||
// { | ||
// name: 'Chromium', | ||
// use: { | ||
// ...devices['Desktop Chrome'], | ||
// launchOptions: chromiumHardware, | ||
// }, | ||
// }, | ||
// { | ||
// name: 'WebKit', | ||
// use: { ...devices['Desktop Safari'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
], | ||
|
||
webServer: { | ||
command: 'npm run preview:v4', | ||
port: 4173, | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
webServer: { | ||
command: "npm run preview:v4", | ||
port: 4173, | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
}); |
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,6 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": ["node"], | ||
"strict": true, | ||
"strict": true | ||
} | ||
} | ||
} |