@powerlines/plugin-jest 0.1.54 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +7 -13
- package/dist/index.d.cts +7 -26
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-Bvn-he2n.mjs +1 -0
- package/dist/plugin-DBPdMher.d.cts +1854 -0
- package/dist/plugin-DBPdMher.d.cts.map +1 -0
- package/dist/plugin-NzQ0w5Tw.d.mts +1854 -0
- package/dist/plugin-NzQ0w5Tw.d.mts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -23
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -23
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-B7VYa_Pp.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +40 -22
- package/dist/index-BqI0CtBE.d.cts +0 -1765
- package/dist/index-BqI0CtBE.d.ts +0 -1765
- package/dist/index.d.ts +0 -34
- package/dist/index.js +0 -13
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -23
- /package/dist/{types/plugin.js → plugin-DHXHjv16.cjs} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { J as JestPluginContext, a as JestPluginOptions, P as Plugin } from './index-BqI0CtBE.js';
|
|
2
|
-
export { c as JestPluginResolvedConfig, b as JestPluginUserConfig, f as __ΩJestPluginContext, _ as __ΩJestPluginOptions, e as __ΩJestPluginResolvedConfig, d as __ΩJestPluginUserConfig } from './index-BqI0CtBE.js';
|
|
3
|
-
import '@jest/types';
|
|
4
|
-
import '@storm-software/build-tools/types';
|
|
5
|
-
import '@storm-software/config-tools/types';
|
|
6
|
-
import '@storm-software/config/types';
|
|
7
|
-
import '@stryke/types/base';
|
|
8
|
-
import '@stryke/types/configuration';
|
|
9
|
-
import '@stryke/types/file';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@stryke/env/get-env-paths';
|
|
12
|
-
import '@stryke/http/fetch';
|
|
13
|
-
import '@stryke/types/package-json';
|
|
14
|
-
import 'jiti';
|
|
15
|
-
import 'magic-string';
|
|
16
|
-
import 'oxc-parser';
|
|
17
|
-
import 'semver';
|
|
18
|
-
import 'ts-morph';
|
|
19
|
-
import 'undici';
|
|
20
|
-
import 'unplugin';
|
|
21
|
-
import '@stryke/fs/resolve';
|
|
22
|
-
import '@stryke/types/tsconfig';
|
|
23
|
-
import 'typescript';
|
|
24
|
-
import '@stryke/types/array';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Jest plugin for Powerlines.
|
|
28
|
-
*
|
|
29
|
-
* @param options - The Jest plugin user configuration options.
|
|
30
|
-
* @returns A Powerlines plugin that integrates Jest testing.
|
|
31
|
-
*/
|
|
32
|
-
declare const plugin: <TContext extends JestPluginContext = JestPluginContext>(options?: JestPluginOptions) => Plugin<TContext>;
|
|
33
|
-
|
|
34
|
-
export { JestPluginContext, JestPluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {LogLevelLabel}from'@storm-software/config-tools/types';import {joinPaths}from'@stryke/path/join';import t from'chalk';import {runCLI}from'jest';import {pluralize,formatTime}from'jest-util';export*from'./types';/*****************************************
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
var F=Object.defineProperty;var C=(e,s)=>F(e,"name",{value:s,configurable:true});const L=C((e={})=>({name:"jest",async config(){const s={$0:void 0,_:[],coverage:e.codeCoverage,bail:e.bail,cache:true,cacheDirectory:joinPaths(this.cachePath,"jest"),ci:e.ci,color:e.colors??true,debug:this.config.mode==="development",detectOpenHandles:e.detectOpenHandles,forceExit:e.forceExit,logHeapUsage:e.logHeapUsage,detectLeaks:e.detectLeaks,json:e.json,maxWorkers:e.maxWorkers,onlyChanged:e.onlyChanged,changedSince:e.changedSince,outputFile:e.outputFile,passWithNoTests:e.passWithNoTests,runInBand:e.runInBand,showConfig:e.showConfig,silent:e.silent,testLocationInResults:e.testLocationInResults,testNamePattern:e.testNamePattern,testPathPatterns:e.testPathPatterns,testPathIgnorePatterns:e.testPathIgnorePatterns,testTimeout:e.testTimeout,colors:e.colors??true,verbose:e.verbose,testResultsProcessor:e.testResultsProcessor,updateSnapshot:e.updateSnapshot,useStderr:e.useStderr,watch:e.watch,watchAll:e.watchAll,randomize:e.randomize};if(e.testFile&&s._.push(e.testFile),e.findRelatedTests){const a=e.findRelatedTests.map(r=>r.trim());s._.push(...a),s.findRelatedTests=true;}return e.coverageDirectory&&(s.coverageDirectory=joinPaths(this.workspaceConfig.workspaceRoot,e.coverageDirectory)),e.clearCache&&(s.clearCache=true),e.reporters&&e.reporters.length>0&&(s.reporters=e.reporters),Array.isArray(e.coverageReporters)&&e.coverageReporters.length>0&&(s.coverageReporters=e.coverageReporters),{test:{jest:s}}},async test(){if(this.config.test.jest){const{results:s}=await runCLI(this.config.test.jest,[joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot)]),a=s.snapshot,r=a.added,g=a.unmatched,o=a.unchecked,n=a.filesRemoved,l=a.didUpdate,h=a.matched,v=a.total,m=a.updated,d=s.numFailedTestSuites,c=s.numPassedTestSuites,f=s.numPendingTestSuites,$=d+c,i=s.testResults.length,P=s.numFailedTests,T=s.numPassedTests,b=s.numPendingTests,p=s.numTodoTests,w=s.numTotalTests,y=`${t.bold("Test Suites: ")+(d?`${t.bold(t.red(`${d} failed`))}, `:"")+(f?`${t.bold(t.yellow(`${f} skipped`))}, `:"")+(c?`${t.bold(t.green(`${c} passed`))}, `:"")+($!==i?`${$} of ${i}`:i)} total`,x=`${t.bold("Tests: ")+(P>0?`${t.bold(t.red(`${P} failed`))}, `:"")+(b>0?`${t.bold(t.yellow(`${b} skipped`))}, `:"")+(p>0?`${t.bold(t.magenta(`${p} todo`))}, `:"")+(T>0?`${t.bold(t.green(`${T} passed`))}, `:"")}${w} total`,k=`${t.bold("Snapshots: ")+(g?`${t.bold(t.red(`${g} failed`))}, `:"")+(o&&!l?`${t.bold(t.yellow(`${o} obsolete`))}, `:"")+(o&&l?`${t.bold(t.green(`${o} removed`))}, `:"")+(n&&!l?`${t.bold(t.yellow(`${pluralize("file",n)} obsolete`))}, `:"")+(n&&l?`${t.bold(t.green(`${pluralize("file",n)} removed`))}, `:"")+(m?`${t.bold(t.green(`${m} updated`))}, `:"")+(r?`${t.bold(t.green(`${r} written`))}, `:"")+(h?`${t.bold(t.green(`${h} passed`))}, `:"")}${v} total`;this.log(LogLevelLabel.INFO,`
|
|
8
|
-
${t.bold("Test result summary:")}
|
|
9
|
-
${y}
|
|
10
|
-
${x}
|
|
11
|
-
${k}
|
|
12
|
-
${t.bold("Time:")} ${formatTime((Date.now()-s.startTime)/1e3)}
|
|
13
|
-
`);}}}),"plugin");var Q=L;export{Q as default,L as plugin};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { J as JestPluginContext, a as JestPluginOptions, c as JestPluginResolvedConfig, b as JestPluginUserConfig, f as __ΩJestPluginContext, _ as __ΩJestPluginOptions, e as __ΩJestPluginResolvedConfig, d as __ΩJestPluginUserConfig } from '../index-BqI0CtBE.js';
|
|
2
|
-
import '@jest/types';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/http/fetch';
|
|
12
|
-
import '@stryke/types/package-json';
|
|
13
|
-
import 'jiti';
|
|
14
|
-
import 'magic-string';
|
|
15
|
-
import 'oxc-parser';
|
|
16
|
-
import 'semver';
|
|
17
|
-
import 'ts-morph';
|
|
18
|
-
import 'undici';
|
|
19
|
-
import 'unplugin';
|
|
20
|
-
import '@stryke/fs/resolve';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
package/dist/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./plugin';
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@jest/types';
|
|
2
|
-
export { J as JestPluginContext, a as JestPluginOptions, c as JestPluginResolvedConfig, b as JestPluginUserConfig, f as __ΩJestPluginContext, _ as __ΩJestPluginOptions, e as __ΩJestPluginResolvedConfig, d as __ΩJestPluginUserConfig } from '../index-BqI0CtBE.js';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/http/fetch';
|
|
12
|
-
import '@stryke/types/package-json';
|
|
13
|
-
import 'jiti';
|
|
14
|
-
import 'magic-string';
|
|
15
|
-
import 'oxc-parser';
|
|
16
|
-
import 'semver';
|
|
17
|
-
import 'ts-morph';
|
|
18
|
-
import 'undici';
|
|
19
|
-
import 'unplugin';
|
|
20
|
-
import '@stryke/fs/resolve';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
File without changes
|