Skip to content

Commit 51b6c6b

Browse files
author
greweb
committed
Fix Prettier formatting in snapshot-resolver.js
- Fix indentation to use 2 spaces instead of 4 - Remove trailing spaces - Ensure consistent formatting for CI
1 parent cd61215 commit 51b6c6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

example/e2e/snapshot-resolver.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Jest Snapshot Resolver for Platform-Specific Snapshots
3-
*
3+
*
44
* This resolver ensures that snapshots are generated in platform-specific directories:
55
* - iOS: e2e/snapshots/reference/ios/
66
* - Android: e2e/snapshots/reference/android/
@@ -20,7 +20,7 @@ function getPlatform() {
2020
return 'android';
2121
}
2222
}
23-
23+
2424
// Check Detox configuration
2525
if (process.env.DETOX_CONFIGURATION) {
2626
if (process.env.DETOX_CONFIGURATION.includes('ios')) {
@@ -30,7 +30,7 @@ function getPlatform() {
3030
return 'android';
3131
}
3232
}
33-
33+
3434
// Default to ios for local development
3535
return 'ios';
3636
}
@@ -41,7 +41,7 @@ module.exports = {
4141
const platform = getPlatform();
4242
const testDir = path.dirname(testPath);
4343
const testFileName = path.basename(testPath, path.extname(testPath));
44-
44+
4545
// Create platform-specific snapshot path
4646
const snapshotDir = path.join(testDir, 'snapshots', 'reference', platform);
4747
return path.join(snapshotDir, `${testFileName}${snapshotExtension}`);
@@ -51,7 +51,7 @@ module.exports = {
5151
resolveTestPath: (snapshotPath, snapshotExtension) => {
5252
const testDir = path.dirname(snapshotPath);
5353
const snapshotFileName = path.basename(snapshotPath, snapshotExtension);
54-
54+
5555
// Go up from snapshots/reference/platform to find the test file
5656
const e2eDir = path.dirname(path.dirname(path.dirname(testDir)));
5757
return path.join(e2eDir, 'tests', `${snapshotFileName}.test.js`);

0 commit comments

Comments
 (0)