From 73c8b380743d439d39d4269160bde4fb1e82073a Mon Sep 17 00:00:00 2001 From: queicherius Date: Sat, 21 Dec 2024 05:03:47 +0000 Subject: [PATCH] Update to dvx rules --- .github/workflows/push.yml | 4 ++++ README.md | 2 +- jest.config.js | 4 +++- tsconfig.json | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3b2a9a9..9669fb3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test-and-build: name: 'Test & build' diff --git a/README.md b/README.md index 050df96..2120955 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

- Encrypting and decrypting strings with aes-256-gcm. + Encrypting and decrypting strings with aes-256-gcm

diff --git a/jest.config.js b/jest.config.js index 922a6be..a1b5af5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,7 @@ module.exports = { - transform: { '^.+\\.tsx?$': '@swc/jest' }, + transform: { + '^.+\\.tsx?$': ['@swc/jest', { jsc: { transform: { react: { runtime: 'automatic' } } } }], + }, coverageProvider: 'v8', testEnvironment: 'node', modulePathIgnorePatterns: ['/dist'], diff --git a/tsconfig.json b/tsconfig.json index 1c2d9c7..4a0cf06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ // Output Options "target": "es2022", "module": "commonjs", - "jsx": "react", + "jsx": "react-jsx", "noEmitOnError": true, "newLine": "lf", "outDir": "dist/",