Skip to content

Commit 622978b

Browse files
Renamed the coverage test to reflect both import/export filtering and aligned the snapshot names accordingly; removed the old snapshot pair and regenerated the snapshots under the new name (Plugins/BridgeJS/Tests/BridgeJSToolTests/BridgeJSCodegenTests.swift, __Snapshots__/BridgeJSCodegenTests/CrossFileSkipsEmptySkeletons.{json,swift}).
Tests: - `UPDATE_SNAPSHOTS=1 swift test --package-path ./Plugins/BridgeJS --filter BridgeJSCodegenTests/codegenSkipsEmptySkeletons` - `swift test --package-path ./Plugins/BridgeJS --filter BridgeJSCodegenTests/codegenSkipsEmptySkeletons` If you want the full suite again: `swift test --package-path ./Plugins/BridgeJS` or the runtime suite via `make unittest SWIFT_SDK_ID=DEVELOPMENT-SNAPSHOT-2025-11-03-a-wasm32-unknown-wasip1`.
1 parent c9b2057 commit 622978b

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Plugins/BridgeJS/Tests/BridgeJSToolTests/BridgeJSCodegenTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ import Testing
168168
}
169169

170170
@Test
171-
func codegenSkipsEmptyImportedFiles() throws {
171+
func codegenSkipsEmptySkeletons() throws {
172172
let swiftAPI = SwiftToSkeleton(progress: .silent, moduleName: "TestModule", exposeToGlobal: false)
173173
let importedURL = Self.multifileInputsDirectory.appendingPathComponent("ImportedFunctions.swift")
174174
swiftAPI.addSourceFile(
@@ -182,6 +182,6 @@ import Testing
182182
)
183183
let skeleton = try swiftAPI.finalize()
184184
#expect(skeleton.exported == nil, "Empty exported skeleton should be omitted")
185-
try snapshotCodegen(skeleton: skeleton, name: "CrossFileSkipsEmptyImportedFiles")
185+
try snapshotCodegen(skeleton: skeleton, name: "CrossFileSkipsEmptySkeletons")
186186
}
187187
}

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/CrossFileSkipsEmptyImportedFiles.json renamed to Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/CrossFileSkipsEmptySkeletons.json

File renamed without changes.

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/CrossFileSkipsEmptyImportedFiles.swift renamed to Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/CrossFileSkipsEmptySkeletons.swift

File renamed without changes.

0 commit comments

Comments
 (0)