Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617#!/bin/sh# Snippets from ts-blank-space's own test suite, captured by running it against a recording wrapper.set -ecd "$(dirname "$0")/.."tmp=$(mktemp -d)cp -R vendor/ts-blank-space/tests "$tmp/tests"for f in "$tmp"/tests/*.test.ts; do sed -i '' "s#\"../src/index.ts\"#\"$PWD/scripts/record-snippets.mjs\"#" "$f"donesed -i '' "s#\"../../src/index.ts\"#\"$PWD/scripts/record-snippets.mjs\"#" "$tmp"/tests/fixture/*.tsrm -f corpus/snippets.jsonlln -s "$PWD/node_modules" "$tmp/node_modules"RECORD_TO="$PWD/corpus/snippets.jsonl" node --test "$tmp/tests/valid.test.ts" "$tmp/tests/errors.test.ts" >/dev/null || truesort -u corpus/snippets.jsonl -o corpus/snippets.jsonlwc -l corpus/snippets.jsonlrm -rf "$tmp"