mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
22 lines
655 B
Plaintext
22 lines
655 B
Plaintext
Create a `package.json` in your project's root by running this command:
|
|
|
|
```bash
|
|
npm init -y
|
|
```
|
|
|
|
Remember to add the `node_modules` folder to your `.gitignore` file.
|
|
Now you are ready to install the Detox itself. Run:
|
|
|
|
```bash npm2yarn
|
|
npm install detox --save-dev
|
|
```
|
|
|
|
The next step is to **install a test runner**. Out of the box, Detox offers you a first-class integration
|
|
with [Jest](https://jestjs.io), a popular and proven choice in the JavaScript community:
|
|
|
|
```bash npm2yarn
|
|
npm install jest --save-dev
|
|
```
|
|
|
|
If you are not familiar with Jest, we recommend you to read the [Jest: Getting Started](https://jestjs.io/docs/en/getting-started) guide.
|