Load only test plugin during tests
The other plugins in my path were causing the tests to fail.
This commit is contained in:
@ -15,8 +15,10 @@ describe("plugin", () => {
|
||||
let s: httpserver.HttpServer
|
||||
|
||||
beforeAll(async () => {
|
||||
papi = new PluginAPI(logger, `${path.resolve(__dirname, "test-plugin")}:meow`)
|
||||
await papi.loadPlugins()
|
||||
// Only include the test plugin to avoid contaminating results with other
|
||||
// plugins that might be on the filesystem.
|
||||
papi = new PluginAPI(logger, `${path.resolve(__dirname, "test-plugin")}:meow`, "")
|
||||
await papi.loadPlugins(false)
|
||||
|
||||
const app = express.default()
|
||||
papi.mount(app)
|
||||
|
Reference in New Issue
Block a user