Skip to content

Commit

Permalink
chore: add web-test-runner for react-auth (#2926)
Browse files Browse the repository at this point in the history
* chore: add web-test-runner for react-auth

* chore: fix package-lock.json
  • Loading branch information
Lodin authored Nov 27, 2024
1 parent e2af537 commit e51780a
Show file tree
Hide file tree
Showing 10 changed files with 1,572 additions and 11 deletions.
9 changes: 7 additions & 2 deletions karma.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/unambiguous */
const { parseArgs } = require('node:util');
const { basename } = require('node:path');
const { readFileSync } = require('node:fs');
Expand All @@ -13,11 +14,11 @@ const postcss = require('postcss');
const cssnanoPlugin = require('cssnano');
const { karmaMochaConfig } = require('./.mocharc.cjs');
const reactPlugin = require('@vitejs/plugin-react');
const { pathToFileURL, fileURLToPath} = require("node:url");
const { pathToFileURL, fileURLToPath } = require('node:url');

// The current package, one of the packages in the `packages` dir
const cwd = pathToFileURL(`${process.cwd()}/`);
const root = pathToFileURL(`${__dirname}/`)
const root = pathToFileURL(`${__dirname}/`);

function loadMockConfig() {
try {
Expand Down Expand Up @@ -168,6 +169,10 @@ module.exports = (config) => {
useDefineForClassFields: false,
},
},
supported: {
decorators: false,
'top-level-await': true,
},
},
plugins: [
loadRegisterJs(),
Expand Down
Loading

0 comments on commit e51780a

Please sign in to comment.