You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/docs/01 guides/02 Using k6/07 Modules.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ usage throughout the script. In k6, it is possible to import three different kin
16
16
17
17
These modules are provided through the k6 core, and gives access to the functionality built
18
18
into k6. This could, for instance, be the `http` client used for making requests against the
19
-
system under test. For a full list of built-in modules, see `the api documentation`.
19
+
system under test. For a full list of built-in modules, see [the api documentation](/javascript-api).
20
20
21
21
```js
22
22
importhttpfrom'k6/http';
@@ -47,7 +47,7 @@ export default function () {
47
47
48
48
### Remote HTTP(S) modules
49
49
50
-
These modules are accessed over HTTP(S), from a source like [the k6 jsLIB](#the-jslib-repository) or
50
+
These modules are accessed over HTTP(S), from a source like [the k6 JSLib](#the-jslib-repository) or
51
51
from any publicly accessible web server. The imported modules will be downloaded and executed at
52
52
runtime, making it extremely important to **make sure the code is legit and trusted before including
53
53
it in a test script**.
@@ -127,7 +127,6 @@ By running code requiring additional features on top of ES5.1, we also need addi
127
127
128
128
When bundling using the configuration described in this article, babel and corejs automatically adds the features needed, thus allowing us to run our script without these extensions, using `--compatibility-mode=base`. For more details on the performance benefits of running in the base compatibility mode, see [this article](/using-k6/javascript-compatibility-mode#performance-comparison).
129
129
130
-
131
130
### Setting up the bundler
132
131
133
132
Setting up a Babel and Webpack project from scratch might sound like a big undertaking, but
@@ -324,7 +323,6 @@ $ k6 run dist/signup.bundle.js \
324
323
325
324
</div>
326
325
327
-
328
326
## Using local modules with Docker
329
327
330
328
When running k6 in a Docker container you must make sure to mount the necessary folders from the host into the container, using [Docker volumes](https://docs.docker.com/engine/admin/volumes/volumes/), so that k6 can see all the JS modules it needs to import.
@@ -371,7 +369,6 @@ has been marked for sharing in the Docker settings:
371
369
372
370

373
371
374
-
375
372
## See also
376
373
377
374
-[ES6 template](https://github.com/k6io/template-es6): a scaffolding project to use ES6 in your k6 scripts.
Collapse file: src/data/markdown/docs/01 guides/02 Using k6/09 Cookies.md
0 commit comments