forked from mirrors/gecko-dev
After implementing vendoring in part 1, it's time to run it! This patch was broken out from part 1 to isolate very tedious portion of the review. Most of this patch is composed of: 1. Generated CTS test files from part 1. 2. A massive wall of test expectation management acknowledging current passes and failures. Currently, Linux and Windows are expected to pass with these noted failures. Many, but not all, current failures on MacOS are recorded. Differential Revision: https://phabricator.services.mozilla.com/D169953
21 lines
629 B
JavaScript
21 lines
629 B
JavaScript
module.exports = function (api) {
|
|
api.cache(true);
|
|
return {
|
|
presets: ['@babel/preset-typescript'],
|
|
plugins: [
|
|
'const-enum',
|
|
[
|
|
'add-header-comment',
|
|
{
|
|
header: ['AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts'],
|
|
},
|
|
],
|
|
],
|
|
compact: false,
|
|
// Keeps comments from getting hoisted to the end of the previous line of code.
|
|
// (Also keeps lines close to their original line numbers - but for WPT we
|
|
// reformat with prettier anyway.)
|
|
retainLines: true,
|
|
shouldPrintComment: val => !/eslint|prettier-ignore/.test(val),
|
|
};
|
|
};
|