Skip to content

Commit 2f91ec2

Browse files
committed
Tweak
Update testSnapshot.ts
1 parent dad442c commit 2f91ec2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/actions/dev_tools/testing/testSnapshot.ts

+4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ export const runTests = async () => {
5555
execSync(`yarn test --forceExit triggerEvents ${testScriptFile} ${snapshotName}`, {
5656
stdio: 'inherit',
5757
})
58+
// Save "PASS" file to snapshot folder
59+
// Re-zip
5860
return true
5961
} catch {
6062
console.error('FAILED TEST :(')
6163
return false
64+
// Delete "PASS" file from snapshot
65+
// Re-zip
6266
}
6367
}
6468

src/components/actions/dev_tools/testing/triggerEvents.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { readFileSync } from 'fs'
33
import { loadActionPlugins } from '../../../pluginsConnect'
44
import { RequestProps, testTrigger } from '../'
55
import useSnapshot from '../../../../components/snapshots/useSnapshot'
6-
import { TEST_SCRIPT_FOLDER, SNAPSHOT_FOLDER } from '../../../../constants'
76

87
interface TestData {
98
name: string

0 commit comments

Comments
 (0)