@instructure/ui-number-input 9.2.1-snapshot-1 → 9.2.1-snapshot-2
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/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [9.2.1-snapshot-
|
|
6
|
+
## [9.2.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.2.1-snapshot-2) (2024-07-10)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-number-input
|
|
9
9
|
|
|
@@ -23,12 +23,24 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { render } from '@testing-library/react';
|
|
26
|
+
import { vi } from 'vitest';
|
|
26
27
|
import { runAxeCheck } from '@instructure/ui-axe-check';
|
|
27
28
|
import { NumberInput } from '../index';
|
|
28
29
|
import NumberInputExamples from '../__examples__/NumberInput.examples';
|
|
29
30
|
// eslint-disable-next-line no-restricted-imports
|
|
30
31
|
import { generateA11yTests } from '@instructure/ui-scripts/lib/test/generateA11yTests';
|
|
31
32
|
describe('<Breadcrumb />', () => {
|
|
33
|
+
let consoleWarningMock;
|
|
34
|
+
let consoleErrorMock;
|
|
35
|
+
beforeEach(() => {
|
|
36
|
+
// Mocking console to prevent test output pollution
|
|
37
|
+
consoleWarningMock = vi.spyOn(console, 'warn').mockImplementation(() => {});
|
|
38
|
+
consoleErrorMock = vi.spyOn(console, 'error').mockImplementation(() => {});
|
|
39
|
+
});
|
|
40
|
+
afterEach(() => {
|
|
41
|
+
consoleWarningMock.mockRestore();
|
|
42
|
+
consoleErrorMock.mockRestore();
|
|
43
|
+
});
|
|
32
44
|
const generatedComponents = generateA11yTests(NumberInput, NumberInputExamples);
|
|
33
45
|
for (const component of generatedComponents) {
|
|
34
46
|
it(component.description, async () => {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
var _react = require("@testing-library/react");
|
|
5
|
+
var _vitest = require("vitest");
|
|
5
6
|
var _runAxeCheck = require("@instructure/ui-axe-check/lib/runAxeCheck.js");
|
|
6
7
|
var _index = require("../index");
|
|
7
8
|
var _NumberInput = _interopRequireDefault(require("../__examples__/NumberInput.examples"));
|
|
@@ -33,6 +34,17 @@ var _generateA11yTests = require("@instructure/ui-scripts/lib/test/generateA11yT
|
|
|
33
34
|
// eslint-disable-next-line no-restricted-imports
|
|
34
35
|
|
|
35
36
|
describe('<Breadcrumb />', () => {
|
|
37
|
+
let consoleWarningMock;
|
|
38
|
+
let consoleErrorMock;
|
|
39
|
+
beforeEach(() => {
|
|
40
|
+
// Mocking console to prevent test output pollution
|
|
41
|
+
consoleWarningMock = _vitest.vi.spyOn(console, 'warn').mockImplementation(() => {});
|
|
42
|
+
consoleErrorMock = _vitest.vi.spyOn(console, 'error').mockImplementation(() => {});
|
|
43
|
+
});
|
|
44
|
+
afterEach(() => {
|
|
45
|
+
consoleWarningMock.mockRestore();
|
|
46
|
+
consoleErrorMock.mockRestore();
|
|
47
|
+
});
|
|
36
48
|
const generatedComponents = (0, _generateA11yTests.generateA11yTests)(_index.NumberInput, _NumberInput.default);
|
|
37
49
|
for (const component of generatedComponents) {
|
|
38
50
|
it(component.description, async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-number-input",
|
|
3
|
-
"version": "9.2.1-snapshot-
|
|
3
|
+
"version": "9.2.1-snapshot-2",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"homepage": "https://instructure.github.io/instructure-ui/",
|
|
@@ -23,24 +23,25 @@
|
|
|
23
23
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "9.2.1-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "9.2.1-snapshot-
|
|
28
|
-
"@instructure/ui-scripts": "9.2.1-snapshot-
|
|
29
|
-
"@instructure/ui-test-locator": "9.2.1-snapshot-
|
|
30
|
-
"@instructure/ui-test-utils": "9.2.1-snapshot-
|
|
31
|
-
"@instructure/ui-themes": "9.2.1-snapshot-
|
|
32
|
-
"@testing-library/react": "^15.0.7"
|
|
26
|
+
"@instructure/ui-axe-check": "9.2.1-snapshot-2",
|
|
27
|
+
"@instructure/ui-babel-preset": "9.2.1-snapshot-2",
|
|
28
|
+
"@instructure/ui-scripts": "9.2.1-snapshot-2",
|
|
29
|
+
"@instructure/ui-test-locator": "9.2.1-snapshot-2",
|
|
30
|
+
"@instructure/ui-test-utils": "9.2.1-snapshot-2",
|
|
31
|
+
"@instructure/ui-themes": "9.2.1-snapshot-2",
|
|
32
|
+
"@testing-library/react": "^15.0.7",
|
|
33
|
+
"vitest": "^1.6.0"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@babel/runtime": "^7.24.5",
|
|
36
|
-
"@instructure/emotion": "9.2.1-snapshot-
|
|
37
|
-
"@instructure/shared-types": "9.2.1-snapshot-
|
|
38
|
-
"@instructure/ui-form-field": "9.2.1-snapshot-
|
|
39
|
-
"@instructure/ui-icons": "9.2.1-snapshot-
|
|
40
|
-
"@instructure/ui-react-utils": "9.2.1-snapshot-
|
|
41
|
-
"@instructure/ui-testable": "9.2.1-snapshot-
|
|
42
|
-
"@instructure/ui-utils": "9.2.1-snapshot-
|
|
43
|
-
"@instructure/uid": "9.2.1-snapshot-
|
|
37
|
+
"@instructure/emotion": "9.2.1-snapshot-2",
|
|
38
|
+
"@instructure/shared-types": "9.2.1-snapshot-2",
|
|
39
|
+
"@instructure/ui-form-field": "9.2.1-snapshot-2",
|
|
40
|
+
"@instructure/ui-icons": "9.2.1-snapshot-2",
|
|
41
|
+
"@instructure/ui-react-utils": "9.2.1-snapshot-2",
|
|
42
|
+
"@instructure/ui-testable": "9.2.1-snapshot-2",
|
|
43
|
+
"@instructure/ui-utils": "9.2.1-snapshot-2",
|
|
44
|
+
"@instructure/uid": "9.2.1-snapshot-2",
|
|
44
45
|
"keycode": "^2.2.1",
|
|
45
46
|
"prop-types": "^15.8.1"
|
|
46
47
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { render } from '@testing-library/react'
|
|
26
|
+
import { vi } from 'vitest'
|
|
26
27
|
|
|
27
28
|
import { runAxeCheck } from '@instructure/ui-axe-check'
|
|
28
29
|
import { NumberInput } from '../index'
|
|
@@ -31,6 +32,24 @@ import NumberInputExamples from '../__examples__/NumberInput.examples'
|
|
|
31
32
|
import { generateA11yTests } from '@instructure/ui-scripts/lib/test/generateA11yTests'
|
|
32
33
|
|
|
33
34
|
describe('<Breadcrumb />', () => {
|
|
35
|
+
let consoleWarningMock: ReturnType<typeof vi.spyOn>
|
|
36
|
+
let consoleErrorMock: ReturnType<typeof vi.spyOn>
|
|
37
|
+
|
|
38
|
+
beforeEach(() => {
|
|
39
|
+
// Mocking console to prevent test output pollution
|
|
40
|
+
consoleWarningMock = vi
|
|
41
|
+
.spyOn(console, 'warn')
|
|
42
|
+
.mockImplementation(() => {}) as any
|
|
43
|
+
consoleErrorMock = vi
|
|
44
|
+
.spyOn(console, 'error')
|
|
45
|
+
.mockImplementation(() => {}) as any
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
afterEach(() => {
|
|
49
|
+
consoleWarningMock.mockRestore()
|
|
50
|
+
consoleErrorMock.mockRestore()
|
|
51
|
+
})
|
|
52
|
+
|
|
34
53
|
const generatedComponents = generateA11yTests(
|
|
35
54
|
NumberInput,
|
|
36
55
|
NumberInputExamples
|