Hi,
I’m getting this error message: Instance member ‘reset’ cannot be used on type ‘Application’; did you mean to use a value of this type instead?
Code is as below. Can you please help?
@testable import App
import Vapor
import XCTest
import FluentPostgreSQL
final class UserTests: XCTestCase {
let usersName = "Alice"
let usersUsername = "alicea"
let usersURI = "/api/users/"
var app: Application!
var conn: PostgreSQLConnection!
override func setUp() {
try! Application.reset()
app = try! Application.testable()
conn = try! app.newConnection(to: .psql).wait()
}
//