Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@currents/jest

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@currents/jest - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

dist/index.js

@@ -1,7 +0,7 @@

"use strict";var It=Object.create;var v=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Rt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var jt=(t,e)=>{for(var s in e)v(t,s,{get:e[s],enumerable:!0})},K=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dt(e))!bt.call(t,i)&&i!==s&&v(t,i,{get:()=>e[i],enumerable:!(r=vt(e,i))||r.enumerable});return t};var u=(t,e,s)=>(s=t!=null?It(Rt(t)):{},K(e||!t||!t.__esModule?v(s,"default",{value:t,enumerable:!0}):s,t)),Lt=t=>K(v({},"__esModule",{value:!0}),t);var Wt={};jt(Wt,{default:()=>C});module.exports=Lt(Wt);var es=require("source-map-support/register");var wt=require("path");var N=require("jest-cli"),H=require("yargs/helpers"),B=u(require("yargs/yargs"));function U(){let t=(0,B.default)((0,H.hideBin)(process.argv)).options(N.yargsOptions).parse();return{...Object.keys(t).filter(s=>s in N.yargsOptions).reduce((s,r)=>(s[r]=t[r],s),{}),_:t._,$0:t.$0}}var q=u(require("debug")),p=(0,q.default)("currents-jest");var m=class{constructor(){this.promise=new Promise((e,s)=>{this.resolve=e,this.reject=s})}};var A=u(require("fs-extra")),O=require("path"),z=require("uuid");var Ft=[];function G(t){Ft.push(t)}var f=u(require("chalk")),$=u(require("util"));var V=[];var Y=(...t)=>{let e=$.default.format(...t);G(e),console.log(e)},k=Y;var E=(...t)=>{let e=$.default.format(...t);return V.push(e),p("ERROR: ",e),Y(f.default.bgRed.white(" ERROR "),e)};var se=f.default.cyan,re=f.default.blueBright,oe=f.default.red,ne=f.default.yellow,ie=f.default.green,ae=f.default.gray,ce=f.default.white,pe=f.default.black,le=f.default.magenta,ue=f.default.dim,fe=f.default.bold;function Nt(t){let e=new Date().toISOString().replace(/[:.]/g,"-"),s=(0,z.v4)();return`${t}-${e}-${s}`}async function Q(t,e){let s=Nt(e),r=(0,O.join)(t,s);return D(r)}async function D(t){try{return await A.default.ensureDir(t),p("Folder created",t),t}catch(e){throw E(`Failed to create folder at ${t}:`,e),e}}async function J(t,e,s){let r=(0,O.join)(t,e);try{return await A.default.writeFile(r,s,"utf8"),p("File created",r),r}catch(i){throw E(`Error writing file at ${r}:`,i),i}}var X=require("@babel/code-frame"),Z=u(require("chalk")),P=u(require("fs-extra")),h=u(require("path")),tt=u(require("stack-utils")),et=u(require("url"));function $t(t,e){return{column:t.column,file:st(t.file,e),line:t.line}}function Et(t){return t.includes(`${h.default.sep}node_modules${h.default.sep}`)}function st(t,e){return h.default.relative(t,e)||h.default.basename(e)}function At(t){let e=t.split(`
"use strict";var Ct=Object.create;var v=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Rt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var jt=(t,e)=>{for(var s in e)v(t,s,{get:e[s],enumerable:!0})},K=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dt(e))!bt.call(t,i)&&i!==s&&v(t,i,{get:()=>e[i],enumerable:!(r=vt(e,i))||r.enumerable});return t};var u=(t,e,s)=>(s=t!=null?Ct(Rt(t)):{},K(e||!t||!t.__esModule?v(s,"default",{value:t,enumerable:!0}):s,t)),Lt=t=>K(v({},"__esModule",{value:!0}),t);var Wt={};jt(Wt,{default:()=>I});module.exports=Lt(Wt);var es=require("source-map-support/register");var wt=require("path");var N=require("jest-cli"),H=require("yargs/helpers"),B=u(require("yargs/yargs"));function U(){let t=(0,B.default)((0,H.hideBin)(process.argv)).options(N.yargsOptions).parse();return{...Object.keys(t).filter(s=>s in N.yargsOptions).reduce((s,r)=>(s[r]=t[r],s),{}),_:t._,$0:t.$0}}var q=u(require("debug")),p=(0,q.default)("currents-jest");var m=class{constructor(){this.promise=new Promise((e,s)=>{this.resolve=e,this.reject=s})}};var A=u(require("fs-extra")),O=require("path"),z=require("uuid");var Ft=[];function G(t){Ft.push(t)}var f=u(require("chalk")),$=u(require("util"));var V=[];var Y=(...t)=>{let e=$.default.format(...t);G(e),console.log(e)},k=Y;var E=(...t)=>{let e=$.default.format(...t);return V.push(e),p("ERROR: ",e),Y(f.default.bgRed.white(" ERROR "),e)};var se=f.default.cyan,re=f.default.blueBright,oe=f.default.red,ne=f.default.yellow,ie=f.default.green,ae=f.default.gray,ce=f.default.white,pe=f.default.black,le=f.default.magenta,ue=f.default.dim,fe=f.default.bold;function Nt(t){let e=new Date().toISOString().replace(/[:.]/g,"-"),s=(0,z.v4)();return`${t}-${e}-${s}`}async function Q(t,e){let s=Nt(e),r=(0,O.join)(t,s);return D(r)}async function D(t){try{return await A.default.ensureDir(t),p("Folder created",t),t}catch(e){throw E(`Failed to create folder at ${t}:`,e),e}}async function J(t,e,s){let r=(0,O.join)(t,e);try{return await A.default.writeFile(r,s,"utf8"),p("File created",r),r}catch(i){throw E(`Error writing file at ${r}:`,i),i}}var X=require("@babel/code-frame"),Z=u(require("chalk")),P=u(require("fs-extra")),h=u(require("path")),tt=u(require("stack-utils")),et=u(require("url"));function $t(t,e){return{column:t.column,file:st(t.file,e),line:t.line}}function Et(t){return t.includes(`${h.default.sep}node_modules${h.default.sep}`)}function st(t,e){return h.default.relative(t,e)||h.default.basename(e)}function At(t){let e=t.split(`
`),s=e.findIndex(n=>n.startsWith(" at "));s===-1&&(s=e.length);let r=e.slice(0,s).join(`
`),i=e.slice(s),o;for(let n of i){let{frame:a,fileName:g}=Jt(n);if(!(!a||!g)&&!Et(g)){o={file:g,column:a.column||0,line:a.line||0};break}}return{message:r,stackLines:i,location:o}}var Ot=new tt.default;function Jt(t){let e=Ot.parseLine(t);if(!e)return{frame:null,fileName:null};let s=null;return e.file&&(s=e.file.startsWith("file://")?et.default.fileURLToPath(e.file):h.default.resolve(process.cwd(),e.file)),{frame:e,fileName:s}}function rt(t,e,s,r){let i=e.stack,o=[],n;if(i){let a=At(i);if(o.push(a.message),n=a.location,n)if(!e.snippet&&(!r||P.default.realpathSync(r)!==n.file)&&(o.push(""),o.push(Z.default.gray(" at ")+`${st(t,n.file)}:${n.line}`)),o.push(""),e.snippet)o.push(e.snippet);else try{let g=P.default.readFileSync(n.file,"utf8"),I=(0,X.codeFrameColumns)(g,{start:n},{highlightCode:s});o.push(I)}catch{}o.push(""),o.push(a.stackLines.join(`
`),i=e.slice(s),o;for(let n of i){let{frame:a,fileName:g}=Jt(n);if(!(!a||!g)&&!Et(g)){o={file:g,column:a.column||0,line:a.line||0};break}}return{message:r,stackLines:i,location:o}}var Ot=new tt.default;function Jt(t){let e=Ot.parseLine(t);if(!e)return{frame:null,fileName:null};let s=null;return e.file&&(s=e.file.startsWith("file://")?et.default.fileURLToPath(e.file):h.default.resolve(process.cwd(),e.file)),{frame:e,fileName:s}}function rt(t,e,s,r){let i=e.stack,o=[],n;if(i){let a=At(i);if(o.push(a.message),n=a.location,n)if(!e.snippet&&(!r||P.default.realpathSync(r)!==n.file)&&(o.push(""),o.push(Z.default.gray(" at ")+`${st(t,n.file)}:${n.line}`)),o.push(""),e.snippet)o.push(e.snippet);else try{let g=P.default.readFileSync(n.file,"utf8"),C=(0,X.codeFrameColumns)(g,{start:n},{highlightCode:s});o.push(C)}catch{}o.push(""),o.push(a.stackLines.join(`
`))}else e.message?o.push(e.message):e.value&&o.push(e.value);return{location:n,message:o.join(`
`)}}function ot(t,e){return{message:t.message,stack:t.stack,value:t.value,snippet:t.snippet,location:t.location?$t(t.location,e):void 0}}var nt=u(require("crypto"));function it(t){return nt.createHash("sha256").update(t).digest("base64").slice(0,8).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var R=u(require("path"));function at(t,e){return Pt(R.default.relative(e,t))}function Pt(t){return t.split(R.default.sep).join(R.default.posix.sep)}var ct=u(require("crypto"));function pt(t){return t.context.config.displayName?.name??t.context.config.id}function y(t){return[...t.ancestorTitles,t.title]}function x(t){return at(t.path,t.context.config.rootDir)}function b(t,e){let s=y(e),r=x(t),i=s.join(" ")+r;return ct.default.createHash("sha256").update(i).digest("hex").substring(0,16)}function T(){let t=+(process.env.JEST_WORKER_ID||1);return{workerIndex:t,parallelIndex:t}}function M(t){switch(t){case"passed":return"passed";case"failed":return"failed";case"pending":case"todo":return"pending";default:throw new Error("Invalid Jest test case status")}}function lt(t){switch(t){case"passed":return"passed";case"failed":return"failed";case"pending":case"todo":return"skipped";default:throw new Error("Invalid Jest test case status")}}function ut(t){switch(t){case"pending":case"todo":return"skipped";default:return"passed"}}function ft(t){let e=t.map(s=>s.status);return e.every(s=>s===e[0])?e[0]:"failed"}function mt(t){return t?.invocations??1}function gt(t){let e=t.map(s=>s.status);return t.length>1&&e.includes("failed")&&e.includes("passed")}var dt=u(require("path")),ht=u(require("fs"));function xt(){return Mt("jest")}function Mt(t){try{let e=require.resolve(dt.default.join(t,"package.json")),s=ht.default.readFileSync(e,"utf8");return JSON.parse(s).version}catch(e){return p('Failed to obtain the package version "%s": %o',t,e),null}}var Tt=require("lodash");function St(t){let e=U();return{framework:"jest",frameworkVersion:xt(),cliArgs:{options:(0,Tt.omit)(e,"_","$0"),args:e._},frameworkConfig:t}}var C=class{constructor(e,s){this.globalConfig=e;this.options=s;this.reportDir="";this.instancesDir="";this.specInfo={};this.projectBySpecMap={};this.specsCount=0;this.processedSpecsCount=0;this.reportDirDeferred=new m;this.specInfoDeferred={};this.testCaseDeferred={};this.resultsDeferred={};this.rootDir=this.globalConfig.rootDir}async onRunStart(e,s){p("Run started"),this.specsCount=e.numTotalTestSuites,this.reportDir=this.options?.reportDir?await D(this.options?.reportDir):await Q(this.rootDir,".currents-report"),k("[currents]: Run started"),k("[currents]: Report directory is set to - %s",this.reportDir),this.instancesDir=await D((0,wt.join)(this.reportDir,"instances"));let r=St(this.globalConfig);p("Report config:",r),await J(this.reportDir,"config.json",JSON.stringify(r)),this.reportDirDeferred.resolve()}async onTestFileStart(e){let s=x(e),r=pt(e);this.projectBySpecMap[s]=r,await this.reportDirDeferred.promise;let i=j(r,s);this.specInfo[i]={projectId:r,specName:s,testCaseList:{},specResult:null,worker:T()},this.specInfoDeferred[i]=new m,this.specInfoDeferred[i].resolve(),p("Spec execution started [%s]: %o",s,this.specInfo[i])}async onTestCaseStart(e,s){let r=x(e),i=this.projectBySpecMap[r],o=b(e,s),n=j(i,r);this.specInfo[n]||(this.specInfo[n]={projectId:i,specName:r,testCaseList:{},specResult:null,worker:T()},this.specInfoDeferred[n]=new m,this.specInfoDeferred[n].resolve());let a=L(i,r,o);this.specInfo[n].testCaseList[a]?this.specInfo[n].testCaseList[a].timestamps.push(s.startedAt??new Date().getTime()):(this.specInfo[n].testCaseList[a]={id:o,timestamps:[s.startedAt??new Date().getTime()],title:y(s),result:[],worker:T(),config:e.context.config},this.testCaseDeferred[a]=new m,this.testCaseDeferred[a].resolve()),p("Test case execution started [%s]: %o",o,this.specInfo[n].testCaseList[a])}async onTestCaseResult(e,s){let r=x(e),i=this.projectBySpecMap[r],o=b(e,s),n=j(i,r);await this.specInfoDeferred[n].promise;let a=L(i,r,o);this.testCaseDeferred[a]||(this.testCaseDeferred[a]=new m,this.testCaseDeferred[a].resolve()),await this.testCaseDeferred[a].promise,this.specInfo[n].testCaseList[a]||(this.specInfo[n].testCaseList[a]={id:o,timestamps:[],title:y(s),result:[],worker:T(),config:e.context.config,location:s.location},p("Test case execution was skipped [%s]: %o",o,this.specInfo[n].testCaseList[a])),this.specInfo[n].testCaseList[a].result.push(s),this.resultsDeferred[a]=new m,this.resultsDeferred[a].resolve(),p("Test case execution completed [%s]: %o",o,this.specInfo[n].testCaseList[a])}async onTestFileResult(e,s){let r=x(e),i=this.projectBySpecMap[r],o=j(i,r);p("Spec execution completed [%s], jest test result: %o",r,s),s.testResults.forEach(async c=>{let S=b(e,c),d=L(i,r,S);this.specInfo[o].testCaseList[d]||(this.specInfo[o].testCaseList[d]={id:S,timestamps:[],title:y(c),result:[c],worker:T(),config:e.context.config,location:c.location},this.resultsDeferred[d]=new m,this.resultsDeferred[d].resolve(),p("Spec execution completed [%s][%s], adding skipped tests: %o",r,S,this.specInfo[o].testCaseList[d]))});let n=new Date(s.perfStats.start).toISOString(),a=new Date(s.perfStats.end).toISOString(),g=s.perfStats.end-s.perfStats.start,I=await Promise.all(Object.values(this.specInfo[o].testCaseList).map(async c=>{let S=L(i,r,c.id);await this.resultsDeferred[S].promise;let d=ft(c.result);return{_t:c.timestamps[0]??s.perfStats.start,testId:c.id,title:c.title,state:M(d),isFlaky:gt(c.result),expectedStatus:ut(d),timeout:0,location:{column:c.location?.column??1,file:r,line:c.location?.line??1},retries:c.result.length+1,attempts:c.result.map((w,F)=>{let _=(w.failureMessages??[]).map(Ct=>ot(rt(c.config.rootDir,new Error(Ct),!1,r),c.config.rootDir));return{_s:M(w.status),attempt:mt(w),workerIndex:c.worker.workerIndex,parallelIndex:c.worker.parallelIndex,startTime:c.timestamps.length&&c.timestamps[F]?new Date(c.timestamps[F]).toISOString():n,steps:[],duration:c.result[F].duration??0,status:lt(w.status),stdout:[],stderr:w.failureMessages??[],errors:_,error:_[0]}})}})),kt=I.filter(c=>c.isFlaky).length,W={groupId:this.specInfo[o].projectId,spec:this.specInfo[o].specName,worker:this.specInfo[o].worker,startTime:n,results:{stats:{suites:1,tests:s.testResults.length,passes:s.numPassingTests,pending:0,skipped:s.numPendingTests+s.numTodoTests,failures:s.numFailingTests,flaky:kt,wallClockStartedAt:n,wallClockEndedAt:a,wallClockDuration:g},tests:I}};p("Spec execution completed [%s], result payload: %o",r,W);let yt=await J(this.instancesDir,`${it(this.specInfo[o].specName)}.json`,JSON.stringify(W));this.processedSpecsCount+=1,k("[currents]: [%s] - spec results written to file: %s [%d/%d]",r,yt,this.processedSpecsCount,this.specsCount)}async onRunComplete(e,s){k("[currents]: Run completed")}};function j(t,e){return`${t}:${e}`}function L(t,e,s){return`${t}:${e}:${s}`}
`)}}function ot(t,e){return{message:t.message,stack:t.stack,value:t.value,snippet:t.snippet,location:t.location?$t(t.location,e):void 0}}var nt=u(require("crypto"));function it(t){return nt.createHash("sha256").update(t).digest("base64").slice(0,8).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var R=u(require("path"));function at(t,e){return Pt(R.default.relative(e,t))}function Pt(t){return t.split(R.default.sep).join(R.default.posix.sep)}var ct=u(require("crypto"));function pt(t){return t.context.config.displayName?.name??t.context.config.id}function y(t){return[...t.ancestorTitles,t.title]}function x(t){return at(t.path,t.context.config.rootDir)}function b(t,e){let s=y(e),r=x(t),i=s.join(" ")+r;return ct.default.createHash("sha256").update(i).digest("hex").substring(0,16)}function S(){let t=+(process.env.JEST_WORKER_ID||1);return{workerIndex:t,parallelIndex:t}}function M(t){switch(t){case"passed":return"passed";case"failed":return"failed";case"pending":case"todo":return"pending";default:throw new Error("Invalid Jest test case status")}}function lt(t){switch(t){case"passed":return"passed";case"failed":return"failed";case"pending":case"todo":return"skipped";default:throw new Error("Invalid Jest test case status")}}function ut(t){switch(t){case"pending":case"todo":return"skipped";default:return"passed"}}function ft(t){let e=t.map(s=>s.status);return e.every(s=>s===e[0])?e[0]:"failed"}function mt(t){return t?.invocations??1}function gt(t){let e=t.map(s=>s.status);return t.length>1&&e.includes("failed")&&e.includes("passed")}var dt=u(require("path")),ht=u(require("fs"));function xt(){return Mt("jest")}function Mt(t){try{let e=require.resolve(dt.default.join(t,"package.json")),s=ht.default.readFileSync(e,"utf8");return JSON.parse(s).version}catch(e){return p('Failed to obtain the package version "%s": %o',t,e),null}}var St=require("lodash");function Tt(t){let e=U();return{framework:"jest",frameworkVersion:xt(),cliArgs:{options:(0,St.omit)(e,"_","$0"),args:e._},frameworkConfig:t}}var I=class{constructor(e,s){this.globalConfig=e;this.options=s;this.reportDir="";this.instancesDir="";this.specInfo={};this.projectBySpecMap={};this.specsCount=0;this.processedSpecsCount=0;this.reportDirDeferred=new m;this.specInfoDeferred={};this.testCaseDeferred={};this.resultsDeferred={};this.rootDir=this.globalConfig.rootDir}async onRunStart(e,s){p("Run started"),this.specsCount=e.numTotalTestSuites,this.reportDir=this.options?.reportDir?await D(this.options?.reportDir):await Q(this.rootDir,".currents-report"),k("[currents]: Run started"),k("[currents]: Report directory is set to - %s",this.reportDir),this.instancesDir=await D((0,wt.join)(this.reportDir,"instances"));let r=Tt(this.globalConfig);p("Report config:",r),await J(this.reportDir,"config.json",JSON.stringify(r)),this.reportDirDeferred.resolve()}async onTestFileStart(e){let s=x(e),r=pt(e);this.projectBySpecMap[s]=r,await this.reportDirDeferred.promise;let i=j(r,s);this.specInfo[i]={projectId:r,specName:s,testCaseList:{},specResult:null,worker:S()},this.specInfoDeferred[i]=new m,this.specInfoDeferred[i].resolve(),p("Spec execution started [%s]: %o",s,this.specInfo[i])}async onTestCaseStart(e,s){let r=x(e),i=this.projectBySpecMap[r],o=b(e,s),n=j(i,r);this.specInfo[n]||(this.specInfo[n]={projectId:i,specName:r,testCaseList:{},specResult:null,worker:S()},this.specInfoDeferred[n]=new m,this.specInfoDeferred[n].resolve());let a=L(i,r,o);this.specInfo[n].testCaseList[a]?this.specInfo[n].testCaseList[a].timestamps.push(s.startedAt??new Date().getTime()):(this.specInfo[n].testCaseList[a]={id:o,timestamps:[s.startedAt??new Date().getTime()],title:y(s),result:[],worker:S(),config:e.context.config},this.testCaseDeferred[a]=new m,this.testCaseDeferred[a].resolve()),p("Test case execution started [%s]: %o",o,this.specInfo[n].testCaseList[a])}async onTestCaseResult(e,s){let r=x(e),i=this.projectBySpecMap[r],o=b(e,s),n=j(i,r);await this.specInfoDeferred[n].promise;let a=L(i,r,o);this.testCaseDeferred[a]||(this.testCaseDeferred[a]=new m,this.testCaseDeferred[a].resolve()),await this.testCaseDeferred[a].promise,this.specInfo[n].testCaseList[a]||(this.specInfo[n].testCaseList[a]={id:o,timestamps:[],title:y(s),result:[],worker:S(),config:e.context.config,location:s.location},p("Test case execution was skipped [%s]: %o",o,this.specInfo[n].testCaseList[a])),this.specInfo[n].testCaseList[a].result.push(s),this.resultsDeferred[a]=new m,this.resultsDeferred[a].resolve(),p("Test case execution completed [%s]: %o",o,this.specInfo[n].testCaseList[a])}async onTestFileResult(e,s){let r=x(e),i=this.projectBySpecMap[r],o=j(i,r);p("Spec execution completed [%s], jest test result: %o",r,s),s.testResults.forEach(async c=>{let T=b(e,c),d=L(i,r,T);this.specInfo[o].testCaseList[d]||(this.specInfo[o].testCaseList[d]={id:T,timestamps:[],title:y(c),result:[c],worker:S(),config:e.context.config,location:c.location},this.resultsDeferred[d]=new m,this.resultsDeferred[d].resolve(),p("Spec execution completed [%s][%s], adding skipped tests: %o",r,T,this.specInfo[o].testCaseList[d]))});let n=new Date(s.perfStats.start).toISOString(),a=new Date(s.perfStats.end).toISOString(),g=s.perfStats.end-s.perfStats.start,C=await Promise.all(Object.values(this.specInfo[o].testCaseList).map(async c=>{let T=L(i,r,c.id);await this.resultsDeferred[T].promise;let d=ft(c.result);return{_t:c.timestamps[0]??s.perfStats.start,testId:c.id,title:c.title,state:M(d),isFlaky:gt(c.result),expectedStatus:ut(d),timeout:0,location:{column:c.location?.column??1,file:r,line:c.location?.line??1},retries:c.result.length,attempts:c.result.map((w,F)=>{let _=(w.failureMessages??[]).map(It=>ot(rt(c.config.rootDir,new Error(It),!1,r),c.config.rootDir));return{_s:M(w.status),attempt:mt(w),workerIndex:c.worker.workerIndex,parallelIndex:c.worker.parallelIndex,startTime:c.timestamps.length&&c.timestamps[F]?new Date(c.timestamps[F]).toISOString():n,steps:[],duration:c.result[F].duration??0,status:lt(w.status),stdout:[],stderr:w.failureMessages??[],errors:_,error:_[0]}})}})),kt=C.filter(c=>c.isFlaky).length,W={groupId:this.specInfo[o].projectId,spec:this.specInfo[o].specName,worker:this.specInfo[o].worker,startTime:n,results:{stats:{suites:1,tests:s.testResults.length,passes:s.numPassingTests,pending:0,skipped:s.numPendingTests+s.numTodoTests,failures:s.numFailingTests,flaky:kt,wallClockStartedAt:n,wallClockEndedAt:a,wallClockDuration:g},tests:C}};p("Spec execution completed [%s], result payload: %o",r,W);let yt=await J(this.instancesDir,`${it(this.specInfo[o].specName)}.json`,JSON.stringify(W));this.processedSpecsCount+=1,k("[currents]: [%s] - spec results written to file: %s [%d/%d]",r,yt,this.processedSpecsCount,this.specsCount)}async onRunComplete(e,s){k("[currents]: Run completed")}};function j(t,e){return`${t}:${e}`}function L(t,e,s){return`${t}:${e}:${s}`}
/*! For license information please see index.js.LEGAL.txt */
//# sourceMappingURL=index.js.map
{
"name": "@currents/jest",
"version": "1.0.0",
"version": "1.0.1",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "author": "Currents Software Inc",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc