5.14.149 • Published 9 months ago

@firanorg/dolore-cumque-distinctio v5.14.149

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Read The Docs | Edit the docs

Build Status Code Coverage version downloads MIT License

All Contributors PRs Welcome Code of Conduct Discord

Watch on GitHub Star on GitHub Tweet

Table of Contents

The Problem

You want to write tests for your Svelte components so that they avoid including implementation details, and are maintainable in the long run.

This Solution

The svelte-testing-library is a very lightweight solution for testing Svelte components. It provides light utility functions on top of svelte and dom-testing-library, in a way that encourages better testing practices. Its primary guiding principle is:

The more your tests resemble the way your software is used, the more confidence they can give you.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev @firanorg/dolore-cumque-distinctio

This library has peerDependencies listings for svelte >= 3.

You may also be interested in installing @testing-library/jest-dom so you can use the custom jest matchers.

Setup

We recommend using @firanorg/dolore-cumque-distinctio with Vitest as your test runner. To get started, add the svelteTesting plugin to your Vite or Vitest config.

  // vite.config.js
  import { svelte } from '@sveltejs/vite-plugin-svelte'
+ import { svelteTesting } from '@firanorg/dolore-cumque-distinctio/vite'

  export default defineConfig({
    plugins: [
      svelte(),
+     svelteTesting(),
    ]
  });

See the setup docs for more detailed setup instructions, including for other test runners like Jest.

Svelte 5 support

If you are riding the bleeding edge of Svelte 5, you'll need to either import from @firanorg/dolore-cumque-distinctio/svelte5 instead of @firanorg/dolore-cumque-distinctio, or add an alias to your vite.config.js:

export default defineConfig({
  plugins: [svelte(), svelteTesting()],
  test: {
    alias: {
      '@firanorg/dolore-cumque-distinctio': '@firanorg/dolore-cumque-distinctio/svelte5',
    },
  },
})

Docs

See the docs over at the Testing Library website.

Issues

Looking to contribute? Look for the Good First Issue label.

🐛 Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

💡 Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.

See Feature Requests

❓ Questions

For questions related to using the library, please visit a support community instead of filing an issue on GitHub.

Contributors

Thanks goes to these people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

requestparentsECMAScript 2017callboundsharedcompilerboundavacss nestinglistenerslogcheckJSONPushflatvaluesmake dircloneECMAScript 7ES2015moduleshookscollection.es6elbjapaneselockfiletermwidthauthenticationi18ntrimfullwidthtaskfunctionprotogradients csstostringtaghasOwnes2016browserparentspecconsumemergesortedstoragegatewayquerystableSymbol.toStringTagES5preprocessorconsoleindicatorsymboltelephonebrowserlistSymboloptimizerautoprefixersymlinkgetOwnPropertyDescriptorInt16Arrayroutescheme-validationglobalbufferstapewatchFileES2019containsrmdircloudwatchcorscall-boundchromees-abstractbyteprotobufsethotcss-in-jsrequirelengthESfindLastIndexnative$.extendcalljsonpathbeanstalkroute53jestES2022spinnerinputfast-deep-copydatekoreanassertionjsonCSSStyleDeclarationerrorkeyWebSocketssiginthelpersURLSearchParamsURLebsreal-timesharedarraybuffertoolkitMaps3ratelimitzerometadatadeterministicTypeBoxuuidObservableredactes-shimsRFC-6455waffromlimitworkflowwatchES2016Object.definePropertydirectorycode pointses2018inferencemulti-packagekeysmakewarningimportexportES3lastYAMLeventDispatcherArrayBuffer.prototype.slicecallbinddescriptorrm -frECMAScript 3Promisereact-hook-formObject.getPrototypeOfECMAScript 2021Array.prototype.containsUint8ClampedArraystylingcss less0statelessuphigher-orderconfigECMAScript 2015RegExp#flagseslintloggerutilitiesparseencryptionsetterECMAScript 6JSON-SchemattypropertynegativecircularhttpwgetserializeeveryjwtObject.entriesasyncpluginyupmatchjsxreact-hooksbcryptidUint32Arrayinternalwindowseses2015pushcrypteast-asian-widthvariablesflattenCSSjavascriptframeworkinvariantexeccoreelasticacheinstallerrdscharacterchaitypeformsunicodefigletcommand-lineregextypedoptimistremovecommandfetchdirFunction.prototype.nameES2023classnamea11yec2TypeScriptestreerapidphonenopepostcssless compilerstylesheetsinatratypessqsObject.fromEntriessymbolsoptionmovewordbreakregularequalityutilityassignrobustES7inspectstdlibstyleshellhasmimematchAllstringifierprivate datathroattouchdeepgroupByratesignalsarraybufferhasOwnPropertyvpcrangeerrorefficientlinkecmascriptquerystringvestnodewalkkarmakinesisietakefindupStreamerror-handlingintrinsicsomelesscssresolveartdefineentriessnsECMAScript 2019ECMAScript 2022bannerStyleSheetfile systemuninstallfastclonetoSortedes-shim APIWebSocketslotHyBisetPrototypeOfloadbalancingsuperstructpackagereadformmonorepoObject.iscurldependency managertypedarraybufferowncliio-tstslinuxpipecloudformationemrdropwatcherargscharactersqsprogressstyled-componentsinterruptsairbnbReactiveExtensionsECMAScript 2023Array.prototype.includespackagesomitglobalsauthcopyjasminedatavalidateiteratorextenditerationReactiveXpromisedeep-clonefast-deep-cloneUint8ArrayArray.prototype.flattenreactenvironmentrfc4122call-bindregexpECMAScript 5postcss-pluginES8mapaccessibilityamazonisConcatSpreadable_.extendfunctionsshimES2018varsless.jsArray.prototype.flatIteratorweakmaplinewrapshebangdatastructurehttpsbindperformanturlconcatreusespeedemitmomentdeepcopysortconcatMapstarterzodBigInt64Arraybundlerpolyfilll10nobjparseroperating-systemcallbackcacheArrayESnextviewreduceperformancearrayssiderandomstreamUnderscoreshrinkwrapes7trimLeftpredictableeventEmitterflagsajaxtestingjsdom[[Prototype]]shamtrimEndcore-jsmimetypeseslintconfigfastlook-upformatECMAScript 2018routingtypesafeless mixinsdom-testing-librarytypeofcloudfrontSetprotocol-buffersfastcopypyyamltoolswrappreserve-symlinkssymlinksbootstrap cssdotenvcommanderfindreadablelrudebugpathdayjsexit-coderecursiveObject.keysassertsdeep-copystructuredClonegdprcjkpositivegetbundlingopenminimaltyped arrayfunctionalbyteLengthexitArray.prototype.filterpersistentbrowserslistrm -rfpnpm9liveflatMapexpressionECMAScript 2020typeerrorschemeutil.inspecttrimRightoncewebpatchcloudtrailprunejsdiffidleguidcssreduxserializerArrayBuffersignalstatuspackage managerenvwritablewordwrapansifind-upUint16Arraybreakwritewalkingemojinested cssstringifyenderRegExp.prototype.flagsgradients css3less csscollectionWeakSettslibconnectprocessrgbclass-validatorindynamodbconfigurabledeepcloneArray.prototype.findLastIndexelmfseventsfast-copyastdomReflect.getPrototypeOfterminalfullwhichObservablesimportnpmfpssimpledbfindLastlazycloudsearchdependenciesclassespicomatcheventsmixinsruntimeappvisualfilterbyteOffsetcoloreslintpluginvalidationajvobjectnamehandlersmochasigtermString.prototype.matchAllinternal slotclassnamesmiddlewareparsingtypedarraysescapefoldernodejstesterRxJSnumberObjectes6bddmkdirmobiledefinePropertymkdirsAsyncIteratoraccessor.envES2017arktypeworkerdiffmapreducestreamsregular expressionmatchesimmerhardlinksBigUint64Arraydeleteworkspace:*macos@@toStringTagtimeiteratechannelreducerthrottlemkdirpawesomesaucelintexpresssliceFloat32Arraytraverse__proto__enumerablecss variabledescriptiontoArrayrestfuldataviewInt32ArraysyntaxES2021tddprefixbatchsameValueZeropackage.jsonlesstrimStartlogginges5Array.prototype.flatMapArray.prototype.findLastargvswfObject.assignxhrargumentvariables in cssisformattingdebuggercolorslooknegative zerostreams2autoscalingcryptoapiwaitWeakMapflag-0immutableassertcodesnamesredux-toolkitgenericsprivateStreamsdescriptorsconcurrencyschemapasswordstyleguidetoStringTagawaitcolumngettertypanionoffsetfast-cloneform-validationregular expressionsreact-testing-librarychinesedataViewcolour
5.14.149

9 months ago

5.13.149

9 months ago

5.13.147

9 months ago

5.13.146

9 months ago

5.13.148

9 months ago

4.12.135

10 months ago

4.12.132

10 months ago

4.12.133

10 months ago

4.12.134

10 months ago

4.13.145

9 months ago

4.13.136

10 months ago

4.13.137

10 months ago

4.13.135

10 months ago

4.13.138

10 months ago

4.13.139

10 months ago

4.13.140

10 months ago

4.13.143

9 months ago

4.13.144

9 months ago

5.13.145

9 months ago

4.13.141

10 months ago

4.13.142

9 months ago

4.11.131

10 months ago

4.12.131

10 months ago

4.11.130

10 months ago

4.11.129

10 months ago

4.11.128

10 months ago

4.11.127

10 months ago

4.11.125

10 months ago

4.11.126

10 months ago

4.11.123

10 months ago

4.11.124

10 months ago

4.11.121

10 months ago

4.11.122

10 months ago

4.11.120

10 months ago

4.11.119

10 months ago

4.11.118

10 months ago

4.11.116

10 months ago

3.11.116

10 months ago

4.11.117

10 months ago

3.11.115

10 months ago

3.11.114

11 months ago

3.11.113

11 months ago

3.11.112

11 months ago

3.11.111

11 months ago

3.11.110

11 months ago

3.11.109

11 months ago

3.11.108

11 months ago

3.11.107

11 months ago

3.11.106

11 months ago

3.11.105

11 months ago

3.11.104

11 months ago

3.10.99

11 months ago

1.8.68

1 year ago

1.8.69

1 year ago

1.4.28

1 year ago

1.4.29

1 year ago

1.8.70

12 months ago

1.8.71

12 months ago

1.9.98

11 months ago

1.8.72

12 months ago

1.9.97

11 months ago

1.8.73

12 months ago

1.9.96

11 months ago

1.8.74

12 months ago

1.6.51

1 year ago

1.8.75

12 months ago

1.8.76

12 months ago

1.6.53

1 year ago

1.8.77

12 months ago

1.6.52

1 year ago

1.8.78

12 months ago

1.6.55

1 year ago

1.8.79

12 months ago

1.6.54

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

1.6.59

1 year ago

1.6.58

1 year ago

2.9.98

11 months ago

2.9.99

11 months ago

1.5.50

1 year ago

2.10.99

11 months ago

1.5.51

1 year ago

1.5.30

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.34

1 year ago

1.5.33

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.3.17

1 year ago

1.5.39

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

3.10.104

11 months ago

3.10.103

11 months ago

1.5.41

1 year ago

1.5.40

1 year ago

1.7.66

1 year ago

1.5.43

1 year ago

1.3.20

1 year ago

1.7.67

1 year ago

1.5.42

1 year ago

1.3.21

1 year ago

1.7.68

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.3.24

1 year ago

1.5.46

1 year ago

1.3.25

1 year ago

1.5.49

1 year ago

1.3.22

1 year ago

1.5.48

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.8.80

12 months ago

1.8.81

12 months ago

1.8.82

12 months ago

1.8.83

12 months ago

1.6.60

1 year ago

1.8.84

12 months ago

3.10.100

11 months ago

1.8.85

12 months ago

1.6.62

1 year ago

1.8.86

12 months ago

1.6.61

1 year ago

3.10.102

11 months ago

1.8.87

12 months ago

1.6.64

1 year ago

3.10.101

11 months ago

1.8.88

12 months ago

1.6.63

1 year ago

1.8.89

12 months ago

1.6.66

1 year ago

1.6.65

1 year ago

1.8.90

11 months ago

1.8.91

11 months ago

1.8.92

11 months ago

1.8.93

11 months ago

1.8.94

11 months ago

1.8.95

11 months ago

1.8.96

11 months ago

1.5.29

1 year ago

1.3.16

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.3.12

1 year ago

1.3.15

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago