feat: Removes old tests, fixes authentication middleware not working, view routes updated to not have delete routes and uses api routes for delete methods.

This commit is contained in:
2025-01-24 10:55:59 -05:00
parent aa60f69758
commit 90c6058d56
37 changed files with 146 additions and 564 deletions

View File

@@ -54,18 +54,18 @@ let package = Package(
],
swiftSettings: swiftSettings
),
.testTarget(
name: "AppTests",
dependencies: [
.target(name: "App"),
.target(name: "HtmlSnapshotTesting"),
.product(name: "XCTVapor", package: "vapor")
],
resources: [
.copy("__Snapshots__")
],
swiftSettings: swiftSettings
),
// .testTarget(
// name: "AppTests",
// dependencies: [
// .target(name: "App"),
// .target(name: "HtmlSnapshotTesting"),
// .product(name: "XCTVapor", package: "vapor")
// ],
// resources: [
// .copy("__Snapshots__")
// ],
// swiftSettings: swiftSettings
// ),
.testTarget(
name: "ViewRouteTests",
dependencies: [
@@ -115,13 +115,6 @@ let package = Package(
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
]
),
.testTarget(
name: "HtmlSnapshotTestingTests",
dependencies: [
.target(name: "App"),
.target(name: "HtmlSnapshotTesting")
]
),
.target(
name: "SharedModels",
dependencies: [