Skip to content

Commit 2a3ce9a

Browse files
chore - use percy cli instead of percy ember
1 parent 252b820 commit 2a3ce9a

File tree

6 files changed

+10
-23
lines changed

6 files changed

+10
-23
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@glimmer/component": "^1.1.2",
4747
"@glimmer/tracking": "^1.1.2",
4848
"@percy/cli": "^1.31.0",
49-
"@percy/ember": "github:NullVoxPopuli/percy-ember#nvp/make-vite-compatible-via-the-compat-plugin",
5049
"@percy/sdk-utils": "^1.31.0",
5150
"@rollup/plugin-babel": "^6.0.4",
5251
"@sinonjs/fake-timers": "^7.1.2",

pnpm-lock.yaml

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/acceptance/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { click, currentURL, visit } from '@ember/test-helpers';
2-
import percySnapshot from '@percy/ember';
2+
import percySnapshot from 'ember-help-wanted/tests/test-support/percy-snapshot';
33
import FakeTimers from '@sinonjs/fake-timers';
44
import { setupMirage } from 'ember-help-wanted/tests/test-support/mirage';
55
import loadDefaultScenario from 'ember-help-wanted/tests/mirage/scenarios/default';

tests/acceptance/issues-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { click, currentURL, fillIn, visit } from '@ember/test-helpers';
2-
import percySnapshot from '@percy/ember';
2+
import percySnapshot from 'ember-help-wanted/tests/test-support/percy-snapshot';
33
import FakeTimers from '@sinonjs/fake-timers';
44
import { setupMirage } from 'ember-help-wanted/tests/test-support/mirage';
55
import loadDefaultScenario from 'ember-help-wanted/tests/mirage/scenarios/default';

tests/acceptance/pr-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { currentURL, visit, findAll } from '@ember/test-helpers';
2-
import percySnapshot from '@percy/ember';
2+
import percySnapshot from 'ember-help-wanted/tests/test-support/percy-snapshot';
33
import FakeTimers from '@sinonjs/fake-timers';
44
import { setupMirage } from 'ember-help-wanted/tests/test-support/mirage';
55
import loadDefaultScenario from 'ember-help-wanted/tests/mirage/scenarios/default';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default async function percySnapshot(name) {
2+
if (window.PercyAgent) {
3+
await window.PercyAgent.snapshot(name);
4+
} else {
5+
console.warn(`[Percy] PercyAgent not found, skipping snapshot: ${name}`);
6+
}
7+
}

0 commit comments

Comments
 (0)