Skip to content

Commit 8be225e

Browse files
committed
Merge branch 'tree-widget/esm' of https://github.com/iTwin/viewer-components-react into tree-widget/esm
2 parents d0b8702 + a80faf7 commit 8be225e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/itwin/tree-widget/src/test/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const mochaHooks = {
5858

5959
// set up snapshot name
6060
const currentTest = (this as unknown as Mocha.Context).currentTest!;
61-
const sourceFilePath = currentTest.file?.replace(`lib${path.sep}cjs${path.sep}test`, `src${path.sep}test`).replace(/\.(jsx?|tsx?)$/, "");
61+
const sourceFilePath = currentTest.file?.replace(`lib${path.sep}esm${path.sep}test`, `src${path.sep}test`).replace(/\.(jsx?|tsx?)$/, "");
6262
const snapPath = `${sourceFilePath}.snap`;
6363
chaiJestSnapshot.setFilename(snapPath);
6464
chaiJestSnapshot.setTestName(currentTest.fullTitle());

scripts/package-cjs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
33
* See LICENSE.md in the project root for license terms and full copyright notice.
44
*--------------------------------------------------------------------------------------------*/
5+
56
const fs = require("node:fs");
67
const path = require("node:path");
78

0 commit comments

Comments
 (0)