Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed May 16, 2024
1 parent 94c5c09 commit bb96bf8
Show file tree
Hide file tree
Showing 40 changed files with 2,160 additions and 2,239 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"commands": [
"echo 'TODO: workaround for https://github.com/npm/cli/issues/7019'",
"rm -rf package-lock.json node_modules **/node_modules",
"npm i --workspaces --include-workspace-root",
"npm i",
"echo '------------------'",
"echo 'TODO: workaround for https://github.com/npm/cli/issues/6787#issuecomment-1751005219'",
"npm i --workspaces --include-workspace-root"
"npm i"
],
"executionMode": "branch",
"fileFilters": ["package-lock.json"]
Expand Down
4,325 changes: 2,094 additions & 2,231 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions projects/angular/src/lib/maskito.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Component} from '@angular/core';
import type {ComponentFixture} from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';
import {FormControl, ReactiveFormsModule} from '@angular/forms';
import {beforeEach, describe, expect, it} from '@jest/globals';
import {MaskitoDirective, MaskitoPipe} from '@maskito/angular';
import type {MaskitoOptions} from '@maskito/core';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {MASKITO_DEFAULT_OPTIONS} from '../../../constants';
import type {MaskitoOptions} from '../../../types';
import {MaskModel} from '../mask-model';
Expand Down
1 change: 0 additions & 1 deletion projects/core/src/lib/utils/dom/hotkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export function isHotkey(
* "keyboard-layout"-independent than {@link KeyboardEvent#key `key`} or {@link KeyboardEvent#code `code`} properties.
* @see {@link https://github.com/taiga-family/maskito/issues/315 `KeyboardEvent#code` issue}
*/
// eslint-disable-next-line sonar/deprecation
event.keyCode === hotkeyCode
);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import type {ElementState} from '../../types';
import {getNotEmptySelection} from '../get-not-empty-selection';

Expand Down
2 changes: 2 additions & 0 deletions projects/core/src/lib/utils/test/get-word-selection.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {getWordSelection} from '../get-word-selection';

describe('getWordSelection', () => {
Expand Down
2 changes: 2 additions & 0 deletions projects/core/src/lib/utils/test/pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import type {ElementState, MaskitoPostprocessor, MaskitoPreprocessor} from '../../types';
import {maskitoPipe} from '../pipe';

Expand Down
2 changes: 2 additions & 0 deletions projects/core/src/lib/utils/test/transform.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import type {MaskitoOptions} from '../../types';
import {maskitoTransform} from '../transform';

Expand Down
1 change: 1 addition & 0 deletions projects/demo/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {ComponentFixture} from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';
import {Router} from '@angular/router';
import {DemoPath} from '@demo/constants';
import {beforeEach, describe, expect, it, xit} from '@jest/globals';

import {AppBrowserModule} from './app.browser.module';
import {AppComponent} from './app.component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateRangeOptionsGenerator} from '@maskito/kit';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateRangeOptionsGenerator} from '@maskito/kit';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateTimeOptionsGenerator} from '@maskito/kit';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';

import type {MaskitoTimeMode} from '../../../types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateTimeOptionsGenerator} from '@maskito/kit';
Expand Down
9 changes: 5 additions & 4 deletions projects/kit/src/lib/masks/date/tests/date-mask.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateOptionsGenerator} from '@maskito/kit';

/**
* If any of these tests fail,
* it can mean that browser autofill or composition are not working properly
* for Date mask
*/
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoDateOptionsGenerator} from '@maskito/kit';

describe('Date (maskitoTransform)', () => {
describe('[mode]="yyyy/mm/dd"', () => {
let options: MaskitoOptions = MASKITO_DEFAULT_OPTIONS;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {createLeadingZeroesValidationPostprocessor} from '../leading-zeroes-validation-postprocessor';

describe('createLeadingZeroesValidationPostprocessor', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {createNotEmptyIntegerPartPreprocessor} from '../not-empty-integer-part-preprocessor';

const EMPTY_ELEMENT_STATE = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import {maskitoParseNumber} from '@maskito/kit';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {
CHAR_EM_DASH,
CHAR_EN_DASH,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {stringifyNumberWithoutExp} from '../stringify-number-without-exp';

describe('number converting to string without exponent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {
CHAR_EM_DASH,
CHAR_EN_DASH,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {DEFAULT_DECIMAL_PSEUDO_SEPARATORS} from '../../../../constants';
import {validateDecimalPseudoSeparators} from '../validate-decimal-pseudo-separators';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {DEFAULT_TIME_SEGMENT_MAX_VALUES} from '../../../../constants';
import {createMaxValidationPreprocessor} from '../max-validation-preprocessor';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {POSSIBLE_DATE_RANGE_SEPARATOR} from '../../masks/date-range/constants';
import {POSSIBLE_DATE_TIME_SEPARATOR} from '../../masks/date-time/constants';
import {createFirstDateEndSeparatorPreprocessor} from '../first-date-end-separator-preprocessor';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, it} from '@jest/globals';
import type {MaskitoPreprocessor} from '@maskito/core';

import {normalizeDatePreprocessor} from '../normalize-date-preprocessor';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {maskitoPostfixPostprocessorGenerator} from '../postfix-postprocessor';

describe('maskitoPostfixPostprocessorGenerator', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {describe, expect, it} from '@jest/globals';
import type {MaskitoPostprocessor} from '@maskito/core';

import {maskitoPrefixPostprocessorGenerator} from '../prefix-postprocessor';

type ElementState = ReturnType<MaskitoPostprocessor>;

describe('maskitoPrefixPostprocessorGenerator', () => {
const EMPTY_INPUT = {value: '', selection: [0, 0] as const};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {createValidDatePreprocessor} from '../valid-date-preprocessor';

describe('createValidDatePreprocessor', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, it} from '@jest/globals';
import {maskitoPipe} from '@maskito/core';
import {maskitoWithPlaceholder} from '@maskito/kit';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {getDateSegmentValueLength} from '../date-segment-value-length';

describe('getDateSegmentValueLength', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {parseDateRangeString} from '../parse-date-range-string';

describe('parseDateRangeString', () => {
Expand Down
2 changes: 2 additions & 0 deletions projects/kit/src/lib/utils/tests/escape-reg-exp.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {CHAR_HYPHEN, CHAR_MINUS} from '../../constants';
import {escapeRegExp} from '../escape-reg-exp';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {findCommonBeginningSubstr} from '../find-common-beginning-substr';

describe('findCommonBeginningSubstr', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {getFirstCompleteDate} from '../date/get-first-complete-date';

describe('getFirstCompleteDate', () => {
Expand Down
2 changes: 2 additions & 0 deletions projects/kit/src/lib/utils/tests/is-empty.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {isEmpty} from '../is-empty';

describe('isEmpty', () => {
Expand Down
2 changes: 2 additions & 0 deletions projects/kit/src/lib/utils/tests/to-half-width-colon.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {toHalfWidthColon} from '../to-half-width-colon';

describe('`toHalfWidthColon` utility converts full width colon to half width colon', () => {
Expand Down
2 changes: 2 additions & 0 deletions projects/kit/src/lib/utils/tests/to-half-width-number.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {describe, expect, it} from '@jest/globals';

import {toHalfWidthNumber} from '../to-half-width-number';

describe('`toHalfWidthNumber` utility converts full width numbers to half width numbers', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {beforeEach, describe, expect, it} from '@jest/globals';
import type {MaskitoOptions} from '@maskito/core';
import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core';
import metadata from 'libphonenumber-js/min/metadata';
Expand Down
1 change: 1 addition & 0 deletions projects/vue/src/lib/maskito.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {describe, expect, it} from '@jest/globals';
import {maskitoInitialCalibrationPlugin} from '@maskito/core';
import {maskito} from '@maskito/vue';
import {mount} from '@vue/test-utils';
Expand Down

0 comments on commit bb96bf8

Please sign in to comment.