[arvados] created: 2.7.0-6611-g11894563f2
git repository hosting
git at public.arvados.org
Thu May 23 15:55:31 UTC 2024
at 11894563f28fb7f419771ed9dfa23ff8f1f14fd0 (commit)
commit 11894563f28fb7f419771ed9dfa23ff8f1f14fd0
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Thu May 23 11:55:06 2024 -0400
21704: new branch
Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/config/jest/babel.config.js b/services/workbench2/config/jest/babel.config.js
new file mode 100644
index 0000000000..4004503b14
--- /dev/null
+++ b/services/workbench2/config/jest/babel.config.js
@@ -0,0 +1,5 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+module.exports = { presets: ['@babel/preset-env'] };
diff --git a/services/workbench2/jest.config.js b/services/workbench2/jest.config.js
new file mode 100644
index 0000000000..cdd84c9c38
--- /dev/null
+++ b/services/workbench2/jest.config.js
@@ -0,0 +1,29 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+module.exports = {
+ roots: ['<rootDir>/src'],
+ collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.d.ts'],
+ setupFiles: ['react-app-polyfill/jsdom'],
+ setupFilesAfterEnv: [],
+ testMatch: ['<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}', '<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}'],
+ testEnvironment: 'jsdom',
+ preset: 'ts-jest',
+ transform: {
+ '^.+\\.(ts|tsx)?$': 'ts-jest',
+ '^.+\\.(js|jsx)$': 'babel-jest',
+ '^.+\\.(js|jsx|mjs|cjs)$': '<rootDir>/config/jest/babelTransform.js',
+ '^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
+ '^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
+ },
+ transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$', '^.+\\.module\\.(css|sass|scss)$'],
+ modulePaths: ['<rootDir>/src'],
+ moduleNameMapper: {
+ '^react-native$': 'react-native-web',
+ '^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
+ },
+ moduleFileExtensions: ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'],
+ watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
+ resetMocks: true,
+};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list