From e813a4905bd91b212f78e175443625622ef2c7bb Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Tue, 16 Jun 2020 16:01:08 -0400 Subject: [PATCH] ignore test data file in istanbul --- bin/generate-formats.js | 1 + scripts/create-test-data.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bin/generate-formats.js b/bin/generate-formats.js index 44a3711..dad2a9a 100755 --- a/bin/generate-formats.js +++ b/bin/generate-formats.js @@ -175,6 +175,7 @@ const containerCodecs = { return c; }), + // TODO: should webm support more content types?? webm: buildCodecs((c) => { if (c.videoCodec && !(/^(av01|vp8|vp09|vp9)/).test(c.videoCodec)) { return null; diff --git a/scripts/create-test-data.js b/scripts/create-test-data.js index a46dae2..337692d 100644 --- a/scripts/create-test-data.js +++ b/scripts/create-test-data.js @@ -39,6 +39,8 @@ const buildFormatsString = function() { }, []); const formatFile = + '/* istanbul ignore file */\n' + + '\n' + `import base64ToUint8Array from "${path.resolve(baseDir, 'src/decode-b64-to-uint8-array.js')}";\n` + 'const cache = {};\n' + 'const formatFiles = {};\n' +