Repository navigation
v1.1.0
MINOR: new opt-in test preset.
Functions
- The new feature
testtype-checks the tests of a package. It is off by default. To turn it on, runnpx cue-config add testand thennpx cue-config generate. The README tells the details ("Type-check the tests"). - With the
testfeature,generatewritestsconfig.test.json. It extends./tsconfig.jsonand the new preset@mark1russell7/cue/ts/config/test.json. The preset includessrc/,test/,__tests__/,e2e/,bench/,*.config.tsand*.config.mts, and it emits nothing. - With the
testfeature, thetypecheckscript istsc --noEmit && tsc -p tsconfig.test.json. With thevitestfeature too, thetestscript isvitest run, with no--passWithNoTests. generategives the new value to a script that has the value of an earliergenerate("typecheck": "tsc --noEmit","test": "vitest run --passWithNoTests"). Other existing scripts stay.tsconfigPresetshas the new nametest. The schema offeatures.jsonhas the featuresvitestandtest. The schema ofdependencies.jsonhas the featuretest.- CI installs the
cueCLI (v0.15.1) and startspnpm testtoo.
Without the test feature, generate writes the same files as 1.0.2. The tests compare the files of 16 feature sets with the files of 1.0.2 (test/fixtures/).