# Exporting as Jest Project (CI-friendly)

Project suites can be exported as [Jest test project](https://jestjs.io/) and be ran in command line by, for example, Continuous Integration server.&#x20;

Press **Ctrl+Shift-E** (⌘⇧E) or click on **File/Export Project as...** menu item:

![Export Project as...](/files/-LuIFVt4ThCtvMvhwGpC)

**Export Project** modal window shows up.&#x20;

![Export project modal](/files/-LuIGM_-KS-FcLyMeW9j)

It is quite  similar to [Run Tests ](https://docs.puppetry.app/v/3.0.0/running-tests)window. Similarly we can choose a target environment (see also [Template variables](https://docs.puppetry.app/v/3.0.0/template)) and set up **Browser options**. What it's new we have to specify the destination folder for the exported project.

After exporting we can jump to the given export directory and install npm dependencies:

```bash
npm install
```

then we run the tests:

```bash
npm test
```

We are expected to get output like that:

![](/files/-M0XPaWnYSraNeli9VH7)

## View Test Reports with Allure

If you have [Allure](http://allure.qatools.ru) installed on your system you can also run&#x20;

```bash
npm run report
```

It will load the generated test report in Allure browser

![Allure test report](/files/-LuIBo-boyhWGyvUt8ek)

## Configuring Puppeteer

You can change the configuration set while exporting in `puppeteer.config.json`

* `incognito` - when true the test will run in incognito window
* `puppeteer.launch` - options to pass to [puppeteer.launch](https://pptr.dev/#?product=Puppeteer\&version=v2.1.0\&show=api-puppeteerlaunchoptions)
* `puppeteer.connect` - options to pass to [puppeteer.connect](https://pptr.dev/#?product=Puppeteer\&version=v2.1.0\&show=api-puppeteerconnectoptions)

#### Example:

```
{
  "incognito": true,
  "puppeteer.connect": {
    "browserWSEndpoint": null,
    "ignoreHTTPSErrors": true
  },
  "puppeteer.launch": {
    "product": "chrome",
    "headless": false,
    "devtools": false,
    "ignoreHTTPSErrors": true,
    "args": [
      "--start-maximized",
      "--ignore-certificate-errors"
    ],
    "executablePath": "/usr/bin/google-chrome"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.puppetry.app/export/exporting-tests-for-ci.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
