Closed CrazyPython closed 7 years ago
@CrazyPython, hi.
What do you mean? Are you talk about invalid manifest? Can you attach an example?
@acvetkov yes, invalid manifest, esp. no file present
Probably, you missunderstand something.
sinon-chrome
does not validate manifest, it's helper tool for testing your code.
@acvetkov what other tool to use then? or can this be implemented?
@CrazyPython I think the first approach can be verifying that manifest is correct json file, e.g.
var manifest = fs.readFileSync('./src/manifest.json');
try {
JSON.parse(manifest);
} catch () {
console.log('Manifest error', manifest);
}
@vitalets That is obvious - but surely if chrome can't load it sinon also can't?
but surely if chrome can't load it sinon also can't?
I think not. Sinon-chrome currently does not use manifest now.
loadable = on "reload" no yellow box with error