igniteui-cli 14.8.5-beta.3 → 14.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
- package/templates/react/igr-ts/projects/_base/files/src/app/app.test.tsx +6 -1
- package/templates/react/igr-ts/projects/_base/files/src/setupTests.ts +9 -7
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +1 -2
- package/templates/react/igr-ts/projects/top-nav/files/src/app/app.test.tsx +9 -4
- package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.8.5
|
|
3
|
+
"version": "14.8.5",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"all": true
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@igniteui/angular-templates": "~21.0.1485
|
|
74
|
-
"@igniteui/cli-core": "~14.8.5
|
|
73
|
+
"@igniteui/angular-templates": "~21.0.1485",
|
|
74
|
+
"@igniteui/cli-core": "~14.8.5",
|
|
75
75
|
"@inquirer/prompts": "^7.9.0",
|
|
76
76
|
"@types/yargs": "^17.0.33",
|
|
77
77
|
"chalk": "^5.3.0",
|
package/templates/react/igr-ts/bullet-graph/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
package/templates/react/igr-ts/category-chart/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
package/templates/react/igr-ts/doughnut-chart/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
package/templates/react/igr-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
package/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import App from './app';
|
|
4
4
|
import 'element-internals-polyfill';
|
|
5
|
+
import { setupTestMocks } from '../setupTests';
|
|
6
|
+
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
setupTestMocks();
|
|
9
|
+
})
|
|
5
10
|
|
|
6
11
|
test('renders without crashing', () => {
|
|
7
12
|
const wrapper = render(<App />);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { vi } from 'vitest';
|
|
2
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
export function setupTestMocks() {
|
|
5
|
+
globalThis.ResizeObserver = ResizeObserver;
|
|
5
6
|
|
|
6
|
-
HTMLElement.prototype.scrollIntoView = vi.fn();
|
|
7
|
-
HTMLElement.prototype.hidePopover = vi.fn();
|
|
8
|
-
HTMLElement.prototype.showPopover = vi.fn();
|
|
9
|
-
HTMLElement.prototype.togglePopover = vi.fn();
|
|
7
|
+
HTMLElement.prototype.scrollIntoView = vi.fn();
|
|
8
|
+
HTMLElement.prototype.hidePopover = vi.fn();
|
|
9
|
+
HTMLElement.prototype.showPopover = vi.fn();
|
|
10
|
+
HTMLElement.prototype.togglePopover = vi.fn();
|
|
11
|
+
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import { MemoryRouter } from 'react-router-dom';
|
|
4
4
|
import App from './app';
|
|
5
5
|
import 'element-internals-polyfill';
|
|
6
|
+
import { setupTestMocks } from '../setupTests';
|
|
7
|
+
|
|
8
|
+
beforeAll(() => {
|
|
9
|
+
setupTestMocks();
|
|
10
|
+
})
|
|
6
11
|
|
|
7
12
|
test('renders without crashing', () => {
|
|
8
|
-
const wrapper = render(
|
|
13
|
+
const wrapper = render(
|
|
9
14
|
<MemoryRouter>
|
|
10
15
|
<App />
|
|
11
16
|
</MemoryRouter>);
|
|
12
|
-
|
|
17
|
+
|
|
13
18
|
expect(wrapper).toBeTruthy();
|
|
14
|
-
});
|
|
19
|
+
});
|
package/templates/react/igr-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.test.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
1
|
+
import { beforeAll, expect, test } from 'vitest';
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import $(ClassName) from './$(path)';
|
|
4
|
+
import { setupTestMocks } from '../../setupTests';
|
|
5
|
+
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
setupTestMocks();
|
|
8
|
+
})
|
|
4
9
|
|
|
5
10
|
test('renders $(ClassName) component', () => {
|
|
6
11
|
const wrapper = render(<$(ClassName) />);
|