Skip to content

Commit

Permalink
Rewrite japa test plugin (#1)
Browse files Browse the repository at this point in the history
* feat(session: redis): implement remove function

* chore: fix lint errors

* refactor: move `cli/japa-plugin` to `src/japa-plugin`

* feat: include japa plugin in release bundle

* fix: change `optionalDependencies` to `peerDependencies`

* fix: japa plugin type errors

* fix(japa): test runner bug

* fix(japa): parse response based on the provided gateway instead of comparing against app's gateway

* chore(japa): cleanup

* fix(japa): minor bug
  • Loading branch information
ephrimlawrence authored Jul 8, 2024
1 parent edf661b commit 90b32c7
Show file tree
Hide file tree
Showing 16 changed files with 645 additions and 649 deletions.
5 changes: 3 additions & 2 deletions bin/test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { configure, processCLIArgs, run } from "@japa/runner";
import { assert } from "@japa/assert";
import { scorpionPlugin } from "../src/cli/japa-plugin";
import { ananseJapaPlugin } from "../src/cli/japa-plugin";
import app from "../tests/test_app";
import { SupportedGateway } from "@src/index";

processCLIArgs(process.argv.splice(2));
configure({
files: ["tests/**/*.spec.ts"],
plugins: [
assert(),
scorpionPlugin({ phone: "23324143443", gateway: "wigal", app: app }),
ananseJapaPlugin({ phone: "23324143443", gateway: SupportedGateway.wigal, app: app }),
],
});

Expand Down
4 changes: 4 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
},
"style": {
"useImportType": "off",
"noInferrableTypes": "off"
}
}
},
Expand Down
Loading

0 comments on commit 90b32c7

Please sign in to comment.