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
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ steps:
continueOnError: true
- script: npm run build
displayName: 'Build the project'
- script: npx playwright install chromium-headless-shell
displayName: 'Install Playwright browsers'
- script: npm run test
displayName: 'Run tests'
env:
CI: 'true'
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ jobs:
- run: npm i # replace with 'npm ci' after committing lock file from first install
# - run: npm run lint
- run: npm run build
- name: Install Playwright browsers
run: npx playwright install chromium-headless-shell
- run: npm run test

env:
CI: 'true'
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import '@testing-library/jest-dom'
import 'vitest-canvas-mock'
import ResizeObserver from 'resize-observer-polyfill'
import {vi} from 'vitest'

global.ResizeObserver = ResizeObserver;
globalThis.ResizeObserver = ResizeObserver;

HTMLElement.prototype.scrollIntoView = vi.fn();
HTMLElement.prototype.hidePopover = vi.fn();
HTMLElement.prototype.showPopover = vi.fn();
HTMLElement.prototype.togglePopover = vi.fn();
HTMLElement.prototype.togglePopover = vi.fn();
Loading