Skip to content

Commit

Permalink
Merge branch 'chore.misc-fixes' into feature/spine
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Apr 22, 2024
2 parents da0c890 + a49f687 commit 2cdfb3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/core/src/AssetPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export class AssetPack
}
else
{
Logger.warn('cache not found, clearing output folder');

// to be safe - lets nuke the folder as the cache is empty
fs.removeSync(this._outputPath);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/json/test/Json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ describe('Json', () =>

const data = readFileSync(`${outputDir}/json/json.json`, 'utf8');

expect(data.replace(/\\/g, '').trim()).toEqual(`{\"hello\":\"world\",\"Im\":\"not broken\"}`);
expect(data.replace(/\\/g, '').trim()).toEqual(`{"hello":"world","Im":"not broken"}`);
});
});

0 comments on commit 2cdfb3f

Please sign in to comment.