Lucas_Werkmeister_WMDE added a comment.
Even more specifically, apparently only the transform cache of the spec file
is relevant. Assuming the test command is `npx jest
tests/unit/components/IndeterminateProgressBar.spec.ts`:
You can remove all transform cache files //except// for the spec one, and the
test will pass without error messages:
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ rm
/tmp/jest_rt/jest-transform-cache-*/*/{setup,namespaces,focus,JestCustomEnvironment,inlanguage,IndeterminateProgressBar_}*
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ ls
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/*/
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/23/:
IndeterminateProgressBarspec_232693a5d5c692e03865a7511aeb7e04
IndeterminateProgressBarspec_232693a5d5c692e03865a7511aeb7e04.map
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/6c/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/79/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/98/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/d4/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/dc/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/ec/:
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ npx jest
tests/unit/components/IndeterminateProgressBar.spec.ts
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
PASS tests/unit/components/IndeterminateProgressBar.spec.ts
IndeterminateProgressBar
✓ renders correctly (17 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: 4.526 s
Ran all test suites matching
/tests\/unit\/components\/IndeterminateProgressBar.spec.ts/i.
Conversely, you can remove only the spec’s transform cache file and the error
message will reappear:
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ rm
/tmp/jest_rt/jest-transform-cache-*/*/IndeterminateProgressBarspec*
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ ls
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/*/
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/23/:
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/6c/:
inlanguage_6c72c0194553c5930b74c912fbd177c4
inlanguage_6c72c0194553c5930b74c912fbd177c4.map
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/79/:
JestCustomEnvironment_7973ecf96a2434197556127b11c1dc7e
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/98/:
setup_9889365b18b921323362af4330067f39
setup_9889365b18b921323362af4330067f39.map
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/d4/:
IndeterminateProgressBar_d4a3b5465104e2138cbee836aa84eced
IndeterminateProgressBar_d4a3b5465104e2138cbee836aa84eced.map
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/dc/:
namespaces_dcdf75f87f467aea542871532dac8f28
namespaces_dcdf75f87f467aea542871532dac8f28.map
/tmp/jest_rt/jest-transform-cache-50c9663e64e4d1472c4e6b7361612c1a-2cfcfb2891f9bf632f59cd19c2f9e2b1/ec/:
focus_ec862bcdc56b4a2af589e5caa565cb38
focus_ec862bcdc56b4a2af589e5caa565cb38.map
I have no name!@d13a8c1ac7c6:/wikibase-termbox$ npx jest
tests/unit/components/IndeterminateProgressBar.spec.ts
ts-jest[ts-compiler] (WARN)
tests/unit/components/IndeterminateProgressBar.spec.ts:1:38 - error TS2307:
Cannot find module '@/components/IndeterminateProgressBar.vue' or its
corresponding type declarations.
1 import IndeterminateProgressBar from
'@/components/IndeterminateProgressBar.vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
PASS tests/unit/components/IndeterminateProgressBar.spec.ts
IndeterminateProgressBar
✓ renders correctly (17 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: 3.396 s
Ran all test suites matching
/tests\/unit\/components\/IndeterminateProgressBar.spec.ts/i.
The contents of that file aren’t hugely exciting, to be honest:
name=/tmp/jest_rt/jest-transform-cache-*/*/IndeterminateProgressBarspec*
b1e0f99328609716b5e4075e6961c4bb
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const IndeterminateProgressBar_vue_1 =
tslib_1.__importDefault(require("@/components/IndeterminateProgressBar.vue"));
const test_utils_1 = require("@vue/test-utils");
describe('IndeterminateProgressBar', () => {
it('renders correctly', () => {
const wrapper = (0,
test_utils_1.shallowMount)(IndeterminateProgressBar_vue_1.default);
expect(wrapper.element).toMatchSnapshot();
});
});
//#
sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoiL3dpa2liYXNlL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iI6M30=
(There’s also an accompanying `.map` file, which is identical to the
base64-decoded `sourceMappingURL` stuff at the end of the main file seen above.)
TASK DETAIL
https://phabricator.wikimedia.org/T309176
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, noarave, ItamarWMDE, Aklapper, Michael,
Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, Astuthiodit_1, 786,
Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule,
Beast1978, Un1tY, Akuckartz, Hook696, darthmon_wmde, Kent7301, joker88john,
CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420,
Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan,
_jensen, rosalieper, Neuronton, Scott_WUaS, Wikidata-bugs, aude,
Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]