Skip to content

Commit

Permalink
Setup unit testing env
Browse files Browse the repository at this point in the history
  • Loading branch information
ligangty committed Nov 3, 2023
1 parent a9cbb54 commit 28d4a29
Show file tree
Hide file tree
Showing 6 changed files with 1,096 additions and 154 deletions.
6 changes: 4 additions & 2 deletions src/main/webui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"env": {
"browser": true,
"es6": true,
"node": true
"node": true,
"jest/globals": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
Expand All @@ -15,7 +16,8 @@
"requireConfigFile": false
},
"plugins": [
"react"
"react",
"jest"
],
"settings": {
"react": {
Expand Down
23 changes: 23 additions & 0 deletions src/main/webui/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-ui-service)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

/** @type {import('jest').Config} */
const config = {
verbose: true,
testEnvironment: 'jsdom',
};

module.exports = config;
Loading

0 comments on commit 28d4a29

Please sign in to comment.