Skip to content
GAS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
src
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.node-version
LICENSE
README.md
jest.config.js
package.json
yarn.lock

README.md

GAS Sample using Jest and ESLint

A Gas Appplication tenmplate with Jest unit tests and Linting by ESLint.

Setup

$ git clone https://github.com/HeRoMo/gas-ts-jest-eslint-sample.git
$ cd gas-ts-jest-eslint-sample
$ yarn 
$ clasp create --type sheets --rootDir src --title GasTsJestEslint

Push the codes and open in web editor

You can push the codes to GAS by the following command.

$ yarn clasp:push

And you can open your GAS project in web editor by the following command.

$ yarn clasp:open

Linting

Run the following command, you can check the codes by ESLint.

$ yarn lint

Testing

Run the following command, you can test the codes by jest locally.

$ yarn test

LICENSE

MIT

You can’t perform that action at this time.