Datanodes ({totalCount})
@@ -575,6 +575,7 @@ export class Datanodes extends React.Component, IDatanode
value={selectedColumns}
allOption={allColumnsOption}
onChange={this._handleColumnChange}
+ data-testid='datanodes-multiselect'
/> Columns
\ No newline at end of file
diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/vite.config.ts b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/vite.config.ts
index 068f27bb2d92..ddb2832f39bc 100644
--- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/vite.config.ts
+++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/vite.config.ts
@@ -1,19 +1,23 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You 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
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
-* 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.
-*/
+///
+///
import { defineConfig, splitVendorChunkPlugin } from 'vite';
import { resolve } from 'path';
@@ -54,7 +58,8 @@ export default defineConfig({
},
resolve: {
alias: {
- "@": pathResolve('src')
+ "@": pathResolve('src'),
+ "@tests": pathResolve('src/__tests__')
}
},
css: {
@@ -71,13 +76,9 @@ export default defineConfig({
},
test: {
globals: true,
- setupFiles: './src/setupTests.ts',
- css: true,
- reporters: ['verbose'],
- coverage: {
- reporter: ['text', 'json', 'html'],
- include: ['src/**/*'],
- exclude: []
- }
+ environment: 'jsdom',
+ setupFiles: 'src/__tests__/vitest.setup.ts',
+ include: ["src/__tests__/**/*.test.tsx"],
+ reporters: ['verbose']
}
-})
\ No newline at end of file
+});