The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
var t = new Test.YAML();

var filters = {
    javascript: 'eval',
};

t.plan(5);
t.filters(filters);
t.run_is('javascript', 'yaml');

/* Test
=== Simple hash with one entry
+++ javascript
YAML.dump('hello', 42, null);
+++ yaml
--- hello
--- 42
--- ~

*/