How to use the feed.xml function in feed

To help you get started, we’ve selected a few feed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phenomic / phenomic / src / loader-feed-webpack-plugin / __tests__ / index.js View on Github external
)
      .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()

feed

Feed is a RSS, Atom and JSON feed generator for Node.js, making content syndication simple and intuitive!

MIT
Latest version published 3 years ago

Package Health Score

64 / 100
Full package analysis