Merge branch 'setup' into template

This commit is contained in:
2026-08-15 11:39:26 +02:00
9 changed files with 232 additions and 54 deletions
+12 -8
View File
@@ -20,14 +20,18 @@ struct AppTests {
.js
]
// Absolute path to the package's "Resources/Static" folder, derived from this
// file's location so the static files resolve regardless of the working directory.
private let staticFilesPath = URL(fileURLWithPath: #filePath)
.deletingLastPathComponent() // Tests/App
.deletingLastPathComponent() // Tests
.deletingLastPathComponent() // package root
.appendingPathComponent(.Path.staticResources)
.path
// Absolute path to the copy of the package's "Resources/Static" folder made into the test bundle
// at build time the repository tree itself is off limits to Xcode's test runner.
private let staticFilesPath: String = {
guard let url = Bundle.module.url(
forResource: "Static",
withExtension: nil
) else {
preconditionFailure("The static files are missing from the test bundle.")
}
return url.path
}()
// MARK: Functional tests
+1
View File
@@ -0,0 +1 @@
../../Resources/Static