Skip to content

Commit 07be00f

Browse files
committed
chore: fix snapshot resolver
1 parent 0233c16 commit 07be00f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cubejs-schema-compiler/test/snapshotResolver.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ function resolveSnapshotPath(testPath, snapshotExtension) {
1010

1111
function resolveTestPath(snapshotFilePath, snapshotExtension) {
1212
const testSourceFile = snapshotFilePath
13-
.replace('test/__snapshots__', 'dist/test')
13+
.replace('test/unit/__snapshots__', 'dist/test/unit')
14+
.replace('test/integration/__snapshots__', 'dist/test/integration')
1415
.replace('.ts', '.js')
1516
.replace(snapshotExtension, '');
1617

@@ -21,5 +22,5 @@ module.exports = {
2122
resolveSnapshotPath,
2223
resolveTestPath,
2324

24-
testPathForConsistencyCheck: 'dist/test/Test.spec.js'
25+
testPathForConsistencyCheck: 'dist/test/unit/Test.spec.js'
2526
};

0 commit comments

Comments
 (0)