Work: @kensio/yulin npm package

The @kensio/yulin library is an open source TypeScript package for simulating AWS for local dev and isolated unit testing. AWS state is simulated internally, so you can test realistic interactions with multiple AWS services.

The word yǔlín (雨林) is Chinese for “rainforest”. This is a roundabout reference to “Amazon” as in Amazon Web Services.

The simulation is not only local to the machine, but in the same single process with the test and application under test. No network or external i/o is involved. This is what “isolated” refers to.

This “isolated system” approach to testing has a few advantages:

That last point is the most important. The motivation behind yulin is to enable efficient tests that cover the logical behaviour of a system. That is in contrast to less valuable microscopic unit tests with fiddly mocks and brittle assertions. The goal of yulin is to allow you to test system behaviours that are meaningful to users and stakeholders.

GitHub: https://github.com/KensioSoftware/yulin

npm: https://www.npmjs.com/package/@kensio/yulin

Tech used