Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
Expand Down
192 changes: 93 additions & 99 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"author": "Alec Rust (https://www.alecrust.com/)",
"packageManager": "npm@11.11.0",
"packageManager": "npm@11.12.1",
"scripts": {
"dev": "webpack serve",
"build": "webpack",
Expand All @@ -22,18 +22,18 @@
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@biomejs/biome": "2.4.4",
"@playwright/test": "^1.58.2",
"babel-loader": "^10.0.0",
"@babel/preset-env": "^7.29.2",
"@biomejs/biome": "2.4.10",
"@playwright/test": "^1.59.1",
"babel-loader": "^10.1.1",
"css-loader": "^7.1.4",
"css-minimizer-webpack-plugin": "^7.0.4",
"html-webpack-plugin": "^5.6.6",
"husky": "^9.1.7",
"image-minimizer-webpack-plugin": "^4.1.4",
"lint-staged": "^16.3.0",
"mini-css-extract-plugin": "^2.10.0",
"postcss": "^8.5.6",
"lint-staged": "^16.4.0",
"mini-css-extract-plugin": "^2.10.2",
"postcss": "^8.5.8",
"postcss-import": "^16.1.1",
"postcss-loader": "^8.2.1",
"postcss-preset-env": "^11.2.0",
Expand All @@ -42,8 +42,8 @@
"stylelint": "^16.26.1",
"stylelint-config-suitcss": "^21.0.0",
"stylelint-selector-bem-pattern": "^4.0.1",
"terser-webpack-plugin": "^5.3.16",
"webpack": "^5.105.3",
"terser-webpack-plugin": "^5.4.0",
"webpack": "^5.105.4",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.3"
},
Expand Down
12 changes: 9 additions & 3 deletions tests/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ test.describe('Tests', () => {
await page.goto('/')
})

test('renders correctly', async ({ page }) => {
const image = await page.screenshot({ fullPage: true })
expect(image).toMatchSnapshot('render-snapshot.png', { threshold: 0.25 })
test('renders correctly', async ({ page }, testInfo) => {
test.skip(
testInfo.project.name !== 'chromium',
'Visual snapshot only on desktop Chromium',
)
await expect(page).toHaveScreenshot('render-snapshot.png', {
fullPage: true,
maxDiffPixelRatio: 0.02,
})
})

test('scrolls to the contact section', async ({ page }) => {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading