From e44813b65d4ec484f8f757fe23c6df6773628269 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 7 Sep 2021 12:12:38 -0700 Subject: [PATCH] Only include jest tests in jest Don't generate sourcemaps for TS Remove github actions --- .github/workflows/deploy.yml | 31 ------------------------------- .github/workflows/test.yml | 25 ------------------------- jest.config.js | 2 +- tsconfig.base.json | 1 - 4 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index c59ff5eba..000000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: CI - -on: - push: - branches: [dev] - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: "14" - cache: "npm" - - - name: Install Dependencies - run: npm ci - - - name: Test - run: npm run test - - - name: Build - run: npm run build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 7bd900b5c..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: CI - -on: [push, pull_request] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - test: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: "14" - cache: "npm" - - - name: Install Dependencies - run: npm ci - - - name: Test - run: npm run test diff --git a/jest.config.js b/jest.config.js index 4fb0d1462..94233b728 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,6 +4,6 @@ module.exports = { transform: { "^.+\\.(js|jsx|ts|tsx)$": "babel-jest", }, - // testMatch: ["**/?(*.)+(test).[jt]s?(x)"], + testMatch: ["**/?(*.)+(test).[jt]s?(x)"], testEnvironment: "jsdom", }; diff --git a/tsconfig.base.json b/tsconfig.base.json index c30a2e1ac..fc4a395be 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -7,7 +7,6 @@ "lib": ["es2016", "dom", "es2017.object", "es2019"], "module": "commonjs", "target": "es6", - "sourceMap": true, "strict": true } }