Skip to content

Commit 83b3e69

Browse files
committed
fix(tests): actualFilepath should to point to generated file
1 parent b352ae0 commit 83b3e69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/TestCases.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ describe('TestCases', () => {
8585
const expectedDirectory = path.resolve(directoryForCase, 'expected');
8686

8787
for (const file of walkSync(expectedDirectory)) {
88-
const actualFilePath = path.resolve(outputDirectory, file);
88+
const actualFilePath = file.replace(
89+
expectedDirectory,
90+
path.join(outputDirectory, directory)
91+
);
8992
const expectedContent = fs.readFileSync(file, 'utf-8');
9093
const actualContent = fs.readFileSync(actualFilePath, 'utf-8');
9194

0 commit comments

Comments
 (0)