Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
.toBeFalsy()
if (stats.hasErrors()) {
console.error(stats.compilation.errors)
}
// doesn't give any warning
expect(
stats.hasWarnings()
)
.toBeFalsy()
if (stats.hasWarnings()) {
console.log(stats.compilation.warnings)
}
const feed = stats.compilation.assets["feed.xml"]
if (!feed) {
console.log(stats.compilation.assets)
}
// should create a xml for the feed
expect(
feed && feed._value,
)
.toBeTruthy()
// should contain a filtred entry (link)
expect(
feed._value.includes("/fixtures/two"),
)
.toBeTruthy()