Skip to content

Commit

Permalink
Merge pull request #56 from ligangty/refactor
Browse files Browse the repository at this point in the history
Setup unit testing env for frontend
  • Loading branch information
ligangty authored Nov 3, 2023
2 parents a9cbb54 + ca381f1 commit 1f10765
Show file tree
Hide file tree
Showing 8 changed files with 1,196 additions and 177 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 1f10765

Please sign in to comment.