File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/itwin/tree-widget/src/test Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export const mochaHooks = {
58
58
59
59
// set up snapshot name
60
60
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 ( / \. ( j s x ? | t s x ? ) $ / , "" ) ;
61
+ const sourceFilePath = currentTest . file ?. replace ( `lib${ path . sep } esm ${ path . sep } test` , `src${ path . sep } test` ) . replace ( / \. ( j s x ? | t s x ? ) $ / , "" ) ;
62
62
const snapPath = `${ sourceFilePath } .snap` ;
63
63
chaiJestSnapshot . setFilename ( snapPath ) ;
64
64
chaiJestSnapshot . setTestName ( currentTest . fullTitle ( ) ) ;
Original file line number Diff line number Diff line change 2
2
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
* See LICENSE.md in the project root for license terms and full copyright notice.
4
4
*--------------------------------------------------------------------------------------------*/
5
+
5
6
const fs = require ( "node:fs" ) ;
6
7
const path = require ( "node:path" ) ;
7
8
You can’t perform that action at this time.
0 commit comments