Stop Writing Ruby Tests in JS Template Literals: Meet rspec-wasm

ruby dev.to

If you have built applications with ruby.wasm, you might have encountered a frustrating developer experience when writing unit tests. Testing Ruby logic compiled to WebAssembly usually meant embedding Ruby code inside JavaScript template literals and asserting the results using Node.js test runners. I wanted to write clean, idiomatic RSpec tests for my Ruby WebAssembly code, so I built rspec-wasm—a test runner that executes native RSpec directly within a Node.js-based ruby.wasm VM.

Read Full Tutorial open_in_new
arrow_back Back to Tutorials