Giter VIP home page Giter VIP logo

deno-poc's Introduction

Deno CloudSpec AWS CDK Proof of Concept

This is a proof of concept for a Deno based cloudspec project. This will deploy an AWS CDK stack as part of the test and make expectations on the stack outputs. It's using the Deno testing capabilities.

Nb: As stated above, that's a POC and nothing I'd recommend using at the moment.

Motivation

Trying to find a streamlined experience for end2end testing, without having to deal with cumbersome test setup. Essentially aiming for a single command which works without much (any?) config. Deno became quite an attractive contender recently by adding direct support for NPM packges.

While that's still focused on Typescript as a language, I could imagine this would be an acceptable workflow for other jsii languages as well, since it's pretty much effortless and zero config. But that's something for another experiment.

Prerequisites

You'll need to have Deno installed

Examples

Inline Deno

This test demonstrates that it's possible to use AWS CDK inline in Deno tests.

deno test --no-check --allow-all ./examples/inline

Embedded into Node Project

This test demonstrates that it's possible to use Deno inside an Typescript / Node AWS CDK application. The way to make it work is to use an import_map to map the NPM packages. Potentially, this import map could be auto generated based on a package.json file to allow seamless test runs alongside an otherwise node based project.

deno test --no-check --allow-all --import-map ./examples/node/import_map.json ./examples/node

deno-poc's People

Contributors

skorfmann avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.