/google-app-script-ts-jest

Google apps script in typescript with jest debugger support

Primary LanguageJavaScript

Google Apps Script Rest Api Typescript & jest

  • A google apps script project using typescript with jest and clasp deploy
  • visual studio code debugger works for jest

Getting started

  • npm install
  • login into clasp
    • node .\node_modules\@google\clasp\src login
  • Init new linked gsheet
    • npm run createSheet

Run Builds

  • npm run build
  • npm run watch

Deploy

  • npm build upload
  • npm run build

Lint Project

  • npm run lint

Run Unit Tests

  • npm run test
  • npm run test:watch
  • npm run test:coverage

Debugging

  • Can use debugger in app script ide in browser or jest debugger in visual studio code