frida-test 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,16 @@ The following chapters explain how to write and run tests.
8
8
 
9
9
  ```sh
10
10
  npm install --save-dev frida-test
11
+ ```
12
+
13
+ After the installation, import the type `frida-test` into you project by adding the following configuration to the `tsconfig.json`:
11
14
 
15
+ ```json
16
+ {
17
+ "compilerOptions": {
18
+ "types": ["frida-test"]
19
+ }
20
+ }
12
21
  ```
13
22
 
14
23
  ## Writing Tests
@@ -29,7 +38,6 @@ describe('Classloader', () => {
29
38
  }).toThrow(new Error("Class 'badClass' is not available."));
30
39
  })
31
40
  });
32
-
33
41
  ```
34
42
 
35
43
  Tests can be nested to any depth and can be synchronous or asynchronous.
@@ -51,7 +59,6 @@ myProject/
51
59
  └── shared/
52
60
  ├── helper.ts
53
61
  └── helper.test.ts
54
-
55
62
  ```
56
63
 
57
64
  ## Matchers
@@ -85,7 +92,6 @@ myProject/
85
92
 
86
93
  ```sh
87
94
  frida-test [options] <dir...>
88
-
89
95
  ```
90
96
 
91
97
  ### Options
@@ -126,7 +132,6 @@ frida-test -U -N org.owasp.mastestapp.MASTestApp-iOS ./tests/ios ./tests/shared
126
132
 
127
133
  # Connect to a remote frida-server on HOST with authentication
128
134
  frida-test -H 192.168.1.10:27042 --token secret -p 4926 ./tests/shared
129
-
130
135
  ```
131
136
 
132
137
  ## Compile Agent
@@ -137,7 +142,6 @@ If you only want to compile this agent, use `frida-test-compile`:
137
142
 
138
143
  ```sh
139
144
  frida-test-compile [options] <dir...>
140
-
141
145
  ```
142
146
 
143
147
  | Option | Description |
@@ -153,5 +157,4 @@ frida-test-compile ./tests
153
157
 
154
158
  # Collects all tests in ./tests, compiles the frida-test agent, and stores it in ./frida-test-agent.js
155
159
  frida-test-compile ./tests -o ./frida-test-agent.js
156
-
157
160
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida-test",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "license": "GPL-3.0-only",
6
6
  "homepage": "https://github.com/bernhste/frida-test/blob/main/README.md",