From 6f4aa0ee4cb14a8fb4fe9255943fa75ede57cacc Mon Sep 17 00:00:00 2001 From: Jamal Carvalho Date: Tue, 11 Jan 2022 17:56:41 +0000 Subject: [PATCH] website: add support for JS/TS unit testing Change-Id: I8bb35b7183c07c44c5e5da8dc2f2c15cc38ea64b Reviewed-on: https://go-review.googlesource.com/c/website/+/377734 Run-TryBot: Jamal Carvalho TryBot-Result: Gopher Robot Reviewed-by: Alex Rakoczy Trust: Jamal Carvalho --- .eslintrc.yaml | 2 +- README.md | 7 + jest-transform.cjs | 26 + npm | 1 + npx | 1 + package-lock.json | 6063 +++++++++++++++++++++++++++++++++++++++++++- package.json | 14 +- tsconfig.json | 1 + 8 files changed, 6023 insertions(+), 92 deletions(-) create mode 100644 jest-transform.cjs diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 09d6a432..a3c2d0a3 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -1,7 +1,7 @@ root: true extends: google parserOptions: - ecmaVersion: 6 + ecmaVersion: 2018 rules: require-jsdoc: 'off' indent: 'off' diff --git a/README.md b/README.md index 6a71958d..3181c466 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,13 @@ Reference .ts files in html templates as module code. `