Skip to content

Commit 35af286

Browse files
committed
dir fix
1 parent 5753ad2 commit 35af286

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/devextreme-cli/testing/app-template.test.shared.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const defaultLayout = 'side-nav-outer-toolbar';
1010

1111
module.exports = (env, { port = 8080, urls = {} } = {}) => {
1212
const diffSnapshotsDir = path.join('testing/__tests__/__diff_snapshots__', env.engine);
13+
const snapshotsDir = path.join('testing/__tests__/__image_snapshots__', env.engine);
1314
const pageUrls = {
1415
profile: 'profile',
1516
tasks: 'tasks',
@@ -95,7 +96,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
9596

9697
function compareSnapshot(image, name, overrideConfig = {}) {
9798
const snapshotName = `${layout}-${theme}-${viewportName}-${name}-snap`;
98-
const snapshotPath = path.join(diffSnapshotsDir, `${snapshotName}.png`);
99+
const snapshotPath = path.join(snapshotsDir, `${snapshotName}.png`);
99100
const diffPath = path.join(diffSnapshotsDir, `${snapshotName}.diff.png`);
100101
let compareResult = false;
101102
return compareImages({

0 commit comments

Comments
 (0)