Skip to content

Commit

Permalink
chore(deps-dev): bump the dev-deps group with 8 updates (#1008)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump the dev-deps group with 8 updates

Bumps the dev-deps group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.8.10` | `20.12.2` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.9.1` | `7.4.0` |
| [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) | `0.34.6` | `1.4.0` |
| [eslint](https://github.com/eslint/eslint) | `8.52.0` | `8.57.0` |
| [eslint-config-ybiquitous](https://github.com/ybiquitous/eslint-config-ybiquitous) | `18.2.0` | `20.0.0` |
| [typescript](https://github.com/Microsoft/TypeScript) | `5.2.2` | `5.4.3` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `0.34.6` | `1.4.0` |
| [ybiq](https://github.com/ybiquitous/ybiq) | `16.3.1` | `17.2.0` |


Updates `@types/node` from 20.8.10 to 20.12.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 6.9.1 to 7.4.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/eslint-plugin)

Updates `@vitest/coverage-v8` from 0.34.6 to 1.4.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.4.0/packages/coverage-v8)

Updates `eslint` from 8.52.0 to 8.57.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.52.0...v8.57.0)

Updates `eslint-config-ybiquitous` from 18.2.0 to 20.0.0
- [Release notes](https://github.com/ybiquitous/eslint-config-ybiquitous/releases)
- [Changelog](https://github.com/ybiquitous/eslint-config-ybiquitous/blob/main/CHANGELOG.md)
- [Commits](ybiquitous/eslint-config-ybiquitous@v18.2.0...v20.0.0)

Updates `typescript` from 5.2.2 to 5.4.3
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.2.2...v5.4.3)

Updates `vitest` from 0.34.6 to 1.4.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v1.4.0/packages/vitest)

Updates `ybiq` from 16.3.1 to 17.2.0
- [Release notes](https://github.com/ybiquitous/ybiq/releases)
- [Changelog](https://github.com/ybiquitous/ybiq/blob/main/CHANGELOG.md)
- [Commits](ybiquitous/ybiq@v16.3.1...v17.2.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-deps
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-deps
- dependency-name: "@vitest/coverage-v8"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-deps
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-deps
- dependency-name: eslint-config-ybiquitous
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-deps
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-deps
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-deps
- dependency-name: ybiq
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-deps
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: skip husky install on CI

See https://typicode.github.io/husky/how-to.html#ci-server-and-docker

* test: refactor to use array destruction

* Revert "ci: skip husky install on CI"

This reverts commit 56051be.

* chore: apply changes via `ybiq init`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ybiquitous authored Apr 1, 2024
1 parent 13bea25 commit 425afdc
Show file tree
Hide file tree
Showing 6 changed files with 3,369 additions and 3,223 deletions.
5 changes: 1 addition & 4 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
npm exec --no -- commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/post-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run release:dry-run
5 changes: 1 addition & 4 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
npm exec --no -- lint-staged
67 changes: 31 additions & 36 deletions index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,60 +123,55 @@ const testCases = [
];

testCases.forEach(({ description, tested, expectations }) => {
describe(`${description}`, () => {
describe(description, () => {
const b = tested();
const [block, blockMod1, blockMod2, element, elementMod1, elementMod2] = expectations;

test("returns block", () => {
const expected = expectations[0];
expect(b()).toEqual(expected);
expect(b({ mod1: false })).toEqual(expected);
expect(b({ mod1: null })).toEqual(expected);
expect(b({ mod1: undefined })).toEqual(expected);
expect(b({ mod1: false, mod2: false, mod3: null, mod4: undefined })).toEqual(expected);
expect(b([])).toEqual(expected);
expect(b([""])).toEqual(expected);
expect(b([null])).toEqual(expected);
expect(b([undefined])).toEqual(expected);
expect(b(["", null, undefined])).toEqual(expected);
expect(b()).toEqual(block);
expect(b({ mod1: false })).toEqual(block);
expect(b({ mod1: null })).toEqual(block);
expect(b({ mod1: undefined })).toEqual(block);
expect(b({ mod1: false, mod2: false, mod3: null, mod4: undefined })).toEqual(block);
expect(b([])).toEqual(block);
expect(b([""])).toEqual(block);
expect(b([null])).toEqual(block);
expect(b([undefined])).toEqual(block);
expect(b(["", null, undefined])).toEqual(block);
});

test("returns block with modifier", () => {
const expected = expectations[1];
expect(b({ mod1: true })).toEqual(expected);
expect(b({ mod1: true, mod2: false, mod3: null, mod4: undefined })).toEqual(expected);
expect(b(["mod1"])).toEqual(expected);
expect(b(["mod1", "", null, undefined])).toEqual(expected);
expect(b({ mod1: true })).toEqual(blockMod1);
expect(b({ mod1: true, mod2: false, mod3: null, mod4: undefined })).toEqual(blockMod1);
expect(b(["mod1"])).toEqual(blockMod1);
expect(b(["mod1", "", null, undefined])).toEqual(blockMod1);
});

test("returns block with multiple modifiers", () => {
const expected = expectations[2];
expect(b({ mod1: true, mod2: true })).toEqual(expected);
expect(b({ mod1: true, mod2: true, mod3: false })).toEqual(expected);
expect(b(["mod1", "mod2"])).toEqual(expected);
expect(b(["mod1", "mod2", null])).toEqual(expected);
expect(b({ mod1: true, mod2: true })).toEqual(blockMod2);
expect(b({ mod1: true, mod2: true, mod3: false })).toEqual(blockMod2);
expect(b(["mod1", "mod2"])).toEqual(blockMod2);
expect(b(["mod1", "mod2", null])).toEqual(blockMod2);
});

test("returns block with element", () => {
const expected = expectations[3];
expect(b("element")).toEqual(expected);
expect(b("element", {})).toEqual(expected);
expect(b("element", { mod: false })).toEqual(expected);
expect(b("element", [""])).toEqual(expected);
expect(b("element")).toEqual(element);
expect(b("element", {})).toEqual(element);
expect(b("element", { mod: false })).toEqual(element);
expect(b("element", [""])).toEqual(element);
});

test("returns block with element and modifier", () => {
const expected = expectations[4];
expect(b("element", { mod1: true })).toEqual(expected);
expect(b("element", { mod1: true, mod2: false })).toEqual(expected);
expect(b("element", ["mod1"])).toEqual(expected);
expect(b("element", ["mod1", null])).toEqual(expected);
expect(b("element", { mod1: true })).toEqual(elementMod1);
expect(b("element", { mod1: true, mod2: false })).toEqual(elementMod1);
expect(b("element", ["mod1"])).toEqual(elementMod1);
expect(b("element", ["mod1", null])).toEqual(elementMod1);
});

test("returns block with element and multiple modifiers", () => {
const expected = expectations[5];
expect(b("element", { mod1: true, mod2: true })).toEqual(expected);
expect(b("element", { mod1: true, mod2: true, mod3: false })).toEqual(expected);
expect(b("element", ["mod1", "mod2"])).toEqual(expected);
expect(b("element", { mod1: true, mod2: true })).toEqual(elementMod2);
expect(b("element", { mod1: true, mod2: true, mod3: false })).toEqual(elementMod2);
expect(b("element", ["mod1", "mod2"])).toEqual(elementMod2);
});
});
});
Expand Down
Loading

0 comments on commit 425afdc

Please sign in to comment.