4.0.0 (2025-01-12)
The TestContext startRepl
was already broken and this release fixes it and changes the API. You can now start the AdonisJS repl during tests using the context.repl.start
method.
test('example test', async ({ visit, route, repl }) => {
const page = await visit(route('/'))
await repl.start({ page })
})
Code Refactoring
- remove startRepl method in favor of repl.start (41fbf21)
BREAKING CHANGES
- Since, we cannot destructure prototype methods, we have to switch to
an object over a method to start repl during tests
Full Changelog: v3.0.2...v4.0.0