Browse Source

suppress more test warnings

value-tracking
Rich Harris 8 years ago
parent
commit
658337baec
  1. 5
      test/form/import-named-exported-global-with-alias/_config.js
  2. 7
      test/form/includes-all-namespace-declarations/_config.js
  3. 7
      test/form/self-calling-function/_config.js
  4. 7
      test/form/side-effect-l/_config.js
  5. 7
      test/form/side-effect-q/_config.js
  6. 7
      test/form/side-effect-r/_config.js
  7. 7
      test/form/side-effect-s/_config.js
  8. 10
      test/test.js

5
test/form/import-named-exported-global-with-alias/_config.js

@ -1,6 +1,9 @@
module.exports = {
description: 'allow globals to be exported and imported',
options: {
moduleName: 'doc'
moduleName: 'doc',
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

7
test/form/includes-all-namespace-declarations/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'includes all declarations referenced by reified namespaces'
description: 'includes all declarations referenced by reified namespaces',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
}

7
test/form/self-calling-function/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'discards a self-calling function without side-effects'
description: 'discards a self-calling function without side-effects',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

7
test/form/side-effect-l/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'discards function with no side-effects in imported module'
description: 'discards function with no side-effects in imported module',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

7
test/form/side-effect-q/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'discards effects in conditional expressions with known test values'
description: 'discards effects in conditional expressions with known test values',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

7
test/form/side-effect-r/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'discards unused function expression assigned to a variable that calls itself and a global'
description: 'discards unused function expression assigned to a variable that calls itself and a global',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

7
test/form/side-effect-s/_config.js

@ -1,3 +1,8 @@
module.exports = {
description: 'discards unused function expression assigned to a variable that calls itself and has side effects'
description: 'discards unused function expression assigned to a variable that calls itself and has side effects',
options: {
onwarn: warning => {
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' );
}
}
};

10
test/test.js

@ -15,11 +15,11 @@ const SOURCEMAPS = path.resolve( __dirname, 'sourcemaps' );
const CLI = path.resolve( __dirname, 'cli' );
const PROFILES = [
{ format: 'amd' },
{ format: 'cjs' },
// { format: 'amd' },
// { format: 'cjs' },
{ format: 'es' },
{ format: 'iife' },
{ format: 'umd' }
// { format: 'iife' },
// { format: 'umd' }
];
function extend ( target ) {
@ -354,7 +354,7 @@ describe( 'rollup', function () {
});
});
describe( 'form', () => {
describe.only( 'form', () => {
sander.readdirSync( FORM ).sort().forEach( dir => {
if ( dir[0] === '.' ) return; // .DS_Store...

Loading…
Cancel
Save