Skip to content

Instantly share code, notes, and snippets.

@muditchoudhary
Created June 4, 2024 12:15
Show Gist options
  • Save muditchoudhary/50c0971df9326eb52333a7a4fb8eab61 to your computer and use it in GitHub Desktop.
Save muditchoudhary/50c0971df9326eb52333a7a4fb8eab61 to your computer and use it in GitHub Desktop.
KDS lint and jest error
yarn test
yarn run v1.22.19
warning ../package.json: No license field
$ jest --config=jest.conf/index.js
FAIL lib/tabs/__tests__/KTabs.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
(node:150522) ExperimentalWarning: The fs.promises API is experimental
FAIL lib/buttons-and-links/__tests__/KButton.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
(node:150528) ExperimentalWarning: The fs.promises API is experimental
FAIL lib/grids/test/KGridItem.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
(node:150516) ExperimentalWarning: The fs.promises API is experimental
FAIL lib/buttons-and-links/__tests__/KRouterLink.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KModal.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KRadioButtonGroup.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KCheckbox.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/tabs/__tests__/KTabsPanel.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/useKShow/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/useKResponsiveWindow/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/_useKWindowDimensions/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/KDateInput.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/tabs/__tests__/KTabsList.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KTextbox/__tests__/KTextbox.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/ValidationMachine.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KFixedGridItem.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KGrid.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/KDateRange.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KImg/__tests__/KImg.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KFixedGrid.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL docs/common/DocsFilter/utils.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KOptionalText.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
Summary of all failing tests
FAIL lib/tabs/__tests__/KTabs.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/buttons-and-links/__tests__/KButton.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KGridItem.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/buttons-and-links/__tests__/KRouterLink.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KModal.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KRadioButtonGroup.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KCheckbox.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/tabs/__tests__/KTabsPanel.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/useKShow/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/useKResponsiveWindow/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/composables/_useKWindowDimensions/__tests__/index.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/KDateInput.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/tabs/__tests__/KTabsList.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KTextbox/__tests__/KTextbox.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/ValidationMachine.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KFixedGridItem.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KGrid.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KDateRange/__tests__/KDateRange.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/KImg/__tests__/KImg.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/grids/test/KFixedGrid.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL docs/common/DocsFilter/utils.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
FAIL lib/__tests__/KOptionalText.spec.js
● Test suite failed to run
TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function
at Runtime.requireInternalModule (node_modules/jest-runtime/build/index.js:1034:8)
Test Suites: 22 failed, 22 total
Tests: 0 total
Snapshots: 0 total
Time: 1.322 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn lint-fix
yarn run v1.22.19
warning ../package.json: No license field
$ yarn lint -w
warning ../package.json: No license field
$ kolibri-tools lint --pattern '**/*.{js,vue,scss,less,css}' -i ,'**/node_modules/**','**/.nuxt/**','**/dist/**','**/lib/KIcon/precompiled-icons/**','**/lib/keen/**','**/docs/environment.js','**/docs/jsdocs.js' -w
Kolibri Linter:
Kolibri Linter: Linting errors for docs/pages/kradiobuttongroup.vue
Kolibri Linter: L2 |<template>
Kolibri Linter: ^ Need two endlines between top-level tags. (--vue-component-conventions)
Kolibri Linter: L45 |<script>
Kolibri Linter: ^ Need two endlines between top-level tags. (--vue-component-conventions)
Kolibri Linter:
Kolibri Linter: Linting errors for lib/KRadioButtonGroup.vue
Kolibri Linter: L10 |<script>
Kolibri Linter: ^ Need two endlines between top-level tags. (--vue-component-conventions)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment