Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mersocarlin/puppeteer

Run headless Chrome Node.js tests in a Docker container
https://github.com/mersocarlin/puppeteer

automated-testing docker docker-image dockerfile puppeteer

Last synced: 1 day ago
JSON representation

Run headless Chrome Node.js tests in a Docker container

Awesome Lists containing this project

README

        

# mersocarlin/puppeteer

## ⭐ Features

✅ Run headless Chrome Node.js tests in a Docker container.

## 📖 How to

In `Dockerfile` file:

```
FROM mersocarlin/puppeteer

# create app directory in container
RUN mkdir -p /app

# set /app directory as default working directory
WORKDIR /app

# copy package.json, yarn.lock (or package-lock.json) and install dependencies
ADD package.json yarn.lock /app/

RUN yarn --pure-lockfile

COPY . /app/

CMD [ "yarn", "test" ]
```

For more information, please refer to the [examples](examples) folder.