Skip to content

Commit e651ac7

Browse files
committed
feat(embedded): Add unit tests for embedDashboard and Jest configuration
1 parent 7bd87b7 commit e651ac7

4 files changed

Lines changed: 2262 additions & 2747 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
module.exports = {
20+
preset: 'ts-jest',
21+
testEnvironment: 'jsdom',
22+
transform: {
23+
'^.+\\.(ts|tsx|js|jsx)$': ['ts-jest', {
24+
tsconfig: {
25+
jsx: 'react',
26+
esModuleInterop: true,
27+
allowSyntheticDefaultImports: true,
28+
},
29+
}],
30+
},
31+
transformIgnorePatterns: [
32+
'node_modules/(?!@superset-ui)',
33+
],
34+
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
35+
};

0 commit comments

Comments
 (0)