@instructure/ui-calendar 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-1](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.2.1-snapshot-1) (2024-07-10)
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-calendar
9
9
 
@@ -24,9 +24,21 @@ var _Calendar, _Calendar2, _Calendar3, _Calendar4;
24
24
  */
25
25
  import React from 'react';
26
26
  import { render, screen } from '@testing-library/react';
27
+ import { vi } from 'vitest';
27
28
  import '@testing-library/jest-dom';
28
29
  import Calendar from '../index';
29
30
  describe('<Calendar />', () => {
31
+ let consoleWarningMock;
32
+ let consoleErrorMock;
33
+ beforeEach(() => {
34
+ // Mocking console to prevent test output pollution
35
+ consoleWarningMock = vi.spyOn(console, 'warn').mockImplementation(() => {});
36
+ consoleErrorMock = vi.spyOn(console, 'error').mockImplementation(() => {});
37
+ });
38
+ afterEach(() => {
39
+ consoleWarningMock.mockRestore();
40
+ consoleErrorMock.mockRestore();
41
+ });
30
42
  describe('with minimal config', () => {
31
43
  it('should render 44 buttons without config', async () => {
32
44
  render(_Calendar || (_Calendar = /*#__PURE__*/React.createElement(Calendar, null)));
@@ -3,6 +3,7 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
4
  var _react = _interopRequireDefault(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
+ var _vitest = require("vitest");
6
7
  require("@testing-library/jest-dom");
7
8
  var _index = _interopRequireDefault(require("../index"));
8
9
  var _Calendar, _Calendar2, _Calendar3, _Calendar4;
@@ -30,6 +31,17 @@ var _Calendar, _Calendar2, _Calendar3, _Calendar4;
30
31
  * SOFTWARE.
31
32
  */
32
33
  describe('<Calendar />', () => {
34
+ let consoleWarningMock;
35
+ let consoleErrorMock;
36
+ beforeEach(() => {
37
+ // Mocking console to prevent test output pollution
38
+ consoleWarningMock = _vitest.vi.spyOn(console, 'warn').mockImplementation(() => {});
39
+ consoleErrorMock = _vitest.vi.spyOn(console, 'error').mockImplementation(() => {});
40
+ });
41
+ afterEach(() => {
42
+ consoleWarningMock.mockRestore();
43
+ consoleErrorMock.mockRestore();
44
+ });
33
45
  describe('with minimal config', () => {
34
46
  it('should render 44 buttons without config', async () => {
35
47
  (0, _react2.render)(_Calendar || (_Calendar = /*#__PURE__*/_react.default.createElement(_index.default, null)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-calendar",
3
- "version": "9.2.1-snapshot-1",
3
+ "version": "9.2.1-snapshot-2",
4
4
  "description": "A calendar component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,30 +23,31 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "9.2.1-snapshot-1",
27
- "@instructure/ui-color-utils": "9.2.1-snapshot-1",
28
- "@instructure/ui-test-locator": "9.2.1-snapshot-1",
29
- "@instructure/ui-test-utils": "9.2.1-snapshot-1",
30
- "@instructure/ui-themes": "9.2.1-snapshot-1",
26
+ "@instructure/ui-babel-preset": "9.2.1-snapshot-2",
27
+ "@instructure/ui-color-utils": "9.2.1-snapshot-2",
28
+ "@instructure/ui-test-locator": "9.2.1-snapshot-2",
29
+ "@instructure/ui-test-utils": "9.2.1-snapshot-2",
30
+ "@instructure/ui-themes": "9.2.1-snapshot-2",
31
31
  "@testing-library/jest-dom": "^6.4.5",
32
- "@testing-library/react": "^15.0.7"
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/console": "9.2.1-snapshot-1",
37
- "@instructure/emotion": "9.2.1-snapshot-1",
38
- "@instructure/shared-types": "9.2.1-snapshot-1",
39
- "@instructure/ui-a11y-content": "9.2.1-snapshot-1",
40
- "@instructure/ui-buttons": "9.2.1-snapshot-1",
41
- "@instructure/ui-i18n": "9.2.1-snapshot-1",
42
- "@instructure/ui-icons": "9.2.1-snapshot-1",
43
- "@instructure/ui-prop-types": "9.2.1-snapshot-1",
44
- "@instructure/ui-react-utils": "9.2.1-snapshot-1",
45
- "@instructure/ui-simple-select": "9.2.1-snapshot-1",
46
- "@instructure/ui-testable": "9.2.1-snapshot-1",
47
- "@instructure/ui-utils": "9.2.1-snapshot-1",
48
- "@instructure/ui-view": "9.2.1-snapshot-1",
49
- "@instructure/uid": "9.2.1-snapshot-1",
37
+ "@instructure/console": "9.2.1-snapshot-2",
38
+ "@instructure/emotion": "9.2.1-snapshot-2",
39
+ "@instructure/shared-types": "9.2.1-snapshot-2",
40
+ "@instructure/ui-a11y-content": "9.2.1-snapshot-2",
41
+ "@instructure/ui-buttons": "9.2.1-snapshot-2",
42
+ "@instructure/ui-i18n": "9.2.1-snapshot-2",
43
+ "@instructure/ui-icons": "9.2.1-snapshot-2",
44
+ "@instructure/ui-prop-types": "9.2.1-snapshot-2",
45
+ "@instructure/ui-react-utils": "9.2.1-snapshot-2",
46
+ "@instructure/ui-simple-select": "9.2.1-snapshot-2",
47
+ "@instructure/ui-testable": "9.2.1-snapshot-2",
48
+ "@instructure/ui-utils": "9.2.1-snapshot-2",
49
+ "@instructure/ui-view": "9.2.1-snapshot-2",
50
+ "@instructure/uid": "9.2.1-snapshot-2",
50
51
  "prop-types": "^15.8.1"
51
52
  },
52
53
  "peerDependencies": {
@@ -23,11 +23,30 @@
23
23
  */
24
24
  import React from 'react'
25
25
  import { render, screen } from '@testing-library/react'
26
+ import { vi } from 'vitest'
26
27
 
27
28
  import '@testing-library/jest-dom'
28
29
  import Calendar from '../index'
29
30
 
30
31
  describe('<Calendar />', () => {
32
+ let consoleWarningMock: ReturnType<typeof vi.spyOn>
33
+ let consoleErrorMock: ReturnType<typeof vi.spyOn>
34
+
35
+ beforeEach(() => {
36
+ // Mocking console to prevent test output pollution
37
+ consoleWarningMock = vi
38
+ .spyOn(console, 'warn')
39
+ .mockImplementation(() => {}) as any
40
+ consoleErrorMock = vi
41
+ .spyOn(console, 'error')
42
+ .mockImplementation(() => {}) as any
43
+ })
44
+
45
+ afterEach(() => {
46
+ consoleWarningMock.mockRestore()
47
+ consoleErrorMock.mockRestore()
48
+ })
49
+
31
50
  describe('with minimal config', () => {
32
51
  it('should render 44 buttons without config', async () => {
33
52
  render(<Calendar />)