File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ Provide the following properties when configuring the tool:
220220<summary><strong>Example of Tool Configuration</strong></summary>
221221
222222` ` ` typescript
223+ import { Act, User, Resource, NodeTestRunner } from 'access-control-testing'
224+
223225const users = [user1]
224226const resources = [todoResource]
225227
@@ -236,13 +238,15 @@ const act = new Act({
236238
237239# # Running Tests
238240
239- After setup, tests are generated and executed as follows :
241+ Once all setup steps are completed, you can generate test cases using `generateTestCases()` and run them with a test runner using `.run()`.
240242
243+ Tests can be run with any test runner by extending the abstract class `TestRunner`.
244+ To use the built-in Node.js test runner, the adapter `NodeTestRunner` is available (requires Node.js version 18 or higher).
241245<details open>
242246<summary><strong>Example of Running Tests</strong></summary>
243247
244248` ` ` typescript
245- import { Act, NodeTestRunner } from 'access-control-testing'
249+ import { Act, User, Resource, NodeTestRunner } from 'access-control-testing'
246250
247251// Assuming setup steps are completed and ` act` instance is configured
248252const testCases = await act.generateTestCases()
You can’t perform that action at this time.
0 commit comments