1.0.0 • Published 23 days ago

@libgitname/repellat-maxime-cumque v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days ago

@libgitname/repellat-maxime-cumque

Overview

Simple framework for unit testing CJS Node.js modules using the following modules:

  • mocha - testing framework;
  • chai - assertion library;
  • sinon - test framework for stubs, spies and mocks;
  • nyc - code coverage checker;
  • rewire - allows access to the unexported items from the module under test;

Features

The following unexported module items may be stubbed for testing:

  • function;
  • class constructor.

Unexported module items, e.g., variables, required modules, may be accessed and faked.

Usage

See ./test/unit for example usage.

Testing

The following test scripts may be run from the command line:

  • npm run test
    • Runs the unit tests, code coverage and outputs the coverage stats.
  • npm run coverage
    • Generates the code coverage data in html format in the './coverage' directory.
  • npm run lint
    • Run eslint on the source and test code; if no errors are detected, only the lint command line is output.
bootstrap csstermTypeBoxstarterlazyvalidatorInt32ArrayArrayBuffersyntaxerrorentriesbufferrequestdebuggerReflect.getPrototypeOfwhatwgES2017emojiinternal0deep-copymkdirptouchtoArraytc39es-shim APIiteratejson-schemacjknopeoptimizerstreamfast-deep-cloneES3circularcharacterjsdomreact-testing-libraryreactwritablerequireexpressfigletidledom-testing-libraryworkerfromStyleSheetweakmapSymbol.toStringTagtrimformatconfigclasseses2015loggingless.jsshimcensorjoienumerablevestphoneloggerenvironmentWebSocketsjson-schema-validatorwalkingincludesnpmeslintconfigzerocall-bindSetjwtflagtesterbundlingimmergesturestoolsexitbannergradients cssfunctionalsyntaxnegative zeroponyfilldeepcloneWebSocketvariables in cssgdpruser-streamshelpersspecformattingreadRFC-6455YAMLastrfc4122chaiharmonypostcsswatch-0openclassnameses-abstractqueueObject.isansiObservablespackageswatchFilejQuerycodesObjectfixed-widthes5authasciistringifierqsstreams2linuxBigUint64ArrayES2022offsetECMAScript 2017uninstalles7RegExp#flagspackageschemawalkArray.prototype.filtertestingPromisetypedarraysinspectmatchpluginpromiseECMAScript 2016String.prototype.matchAll256deleteguidvalidreact poseeslint-pluginimportthrottlesharedremoveFloat64ArrayJSONgetPrototypeOfassertpathcss-in-jsthroatutilhookformInt8Arraymomentcorsposegetterparseinternal slotfastclonemodulespnpm9find-upspinnersjapanesereadablecomparewaapilastes2018Uint8ClampedArrayReactiveXboundjsxdeterministicanimationsetImmediateapiforEachextensioncolorregexpruntimewordwrapes6ES7workspace:*matchAllInt16Arrayscheme-validationcollection.es6tddUnderscoreconcurrencydirectorymake dirprefixeventEmitterkarmalruwhichECMAScript 2021accessorTypedArrayslicecomputed-typesserializetypedarraya11ycompiler__proto__slotgraphqlform-validationprogress3dlanguagemimeObject.entrieslimitfseventstestrecursivearrayutil.inspectStreamless compilerBigInt64Arrayestreereducetapepostcss-pluginequalprivate datamergeiteratorencryptionrmdirArraytrimStarteventsbusyTypeScriptcss lessquerystringtostringtagmoveHyBies2017descriptorES6tslibpipeargumentargparseES2016terminaleslintparserECMAScript 2019electronbufferses8ECMAScript 6ArrayBuffer.prototype.sliceES5indicatortypeofuuidES2015concatMapsignalsutilitiesargvserializationES8ecmascriptvariablesexpressiontaskinputupawaitmakepicomatchshrinkwrapfull-widthes2016isObject.assignfindupRxconsumefast-cloneajaxnegativerapidreuseassertionconfigurablefast-deep-copyWeakSetautoprefixerprettyyupclonelibphonenumberflagspatchapolloES2020hasspring_.extendpyyamlwarningparentwriteObservablecryptregularcontainslogttyfunctionReactiveExtensionskeysmonorepoi18nsymbolbrowserlistpackage manageroptimistglobcommand-lineeventDispatcherdebugdomchineseconcatwindowslessECMAScript 2020Object.fromEntriesbundleromitrobusteslintplugincall-boundutilitysigintclass-validatorgetwatchingiterationdayjsECMAScript 7asyncwgetmochaerrorquerycompile lessfsrandoml10nviewtypesafecollectionhandlerscss variablepolyfilllesscsspersistentstyleperformancechromiumhookserror-handlingESnamesratelimitwebessafeobjectvalidateprotocol-bufferssymlinktime6to5ieObject.keysAsyncIteratorpreserve-symlinkssameValueZeroirqcode pointsnumbermatchesnativereact-hook-formmobiledropdatetrimLeftcommanderPushvaluescore-jspropertiespropertycallbackcryptocorestylesheetArray.prototype.flatMapinferenceRegExp.prototype.flagsJSON-SchemaspeedinstallergrouppasswordUint16ArrayairbnbspinnerjestparentsstatussettypesfilterdefineshellFloat32ArraysigtermshebangtranspilerdotenvECMAScript 2018byteio-tsCSSStyleDeclarationURLSearchParamstelephoneflatMapavamiddlewaresequencefileObject.definePropertyjsonpathrm -rfes-shimsredactenvdeepcopybyteOffsetsettingseverycallboundcheckmimetypesdragjsonschemaCSSwrapvalueString.prototype.trimhigher-ordermkdirssuperstructframeworkhttpsprotoURLpropclientextendArray.prototype.containskeycolumnscoercibleconsoleArrayBuffer#sliceECMAScript 2022findpromisesaccessibilitysuperagentnodejsreadablestreamtyped arrayjson-schema-validationArray.prototype.includesawesomesaucecolumnsignalbrowserduplexprotobufmetadatainstallbreakreduxmrustyleguideIteratordataViewtaplookreact animationformajvchannelfile systemES2023toStringTagmime-dbregular expressionSymbolmapframerassertslinewrappushcopyqueueMicrotaskstdlibhttpvisualvarwordbreakpackage.jsoncallbindreal-timepreprocessorstyled-componentsfastcopyexit-codestylesESnextfastcurllinkregular expressionsECMAScript 3stringtypanionArray.prototype.findLastIndexfindLastnamedatagroupByperformantclisymbolsFunction.prototype.nameisConcatSpreadablegradients css3.envdependenciespositivedeeptypejasminenested csssymlinksbyteLengthfullartarrayshashratemixinsfullwidthcssbootstrap lessprototypepopmotionECMAScript 2023argsfastifyES2019toobjectbabel-coretakeECMAScript 2015statelessdefinePropertyequalityredux-toolkitemitgetintrinsiccss nestingwidthlockfileUint8ArrayregexinvariantbabelthreeObject.getPrototypeOfenderxhrfetchStreamssortedonceArray.prototype.flatcharactersprivatekoreanrm -frletmacosauthenticationmulti-packageloadingrgbdatastructureprocesssortjavascriptoperating-systemWeakMapbluebirdtranspileUint32ArrayfunctionsfindLastIndexbindlimitedresolvestreamsless mixinsdeep-clonetrimEndquotetypescriptdescriptionconstdircachejsdiffdescriptorsreducerunicodefast-copyefficientarraybuffersharedarraybuffertraversetypeerrortextoutputsidebrowserslistassignnodeformsrmcolorsObject.valuesArray.prototype.flattenES2021tsMapweaksetclassnamestringifyhardlinksflattenintrinsicgetOwnPropertyDescriptorjson
1.0.0

23 days ago