Skip to content

Commit

Permalink
Merge pull request #404 from matzeeable/main
Browse files Browse the repository at this point in the history
Add tests for rspack and esbuild bundle output
  • Loading branch information
swissspidy authored Jun 14, 2024
2 parents c7ddfda + bdbb154 commit 373ec88
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,17 @@ Feature: Generate a POT file of a WordPress project
Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["__"])( 'webpack.__', 'foo-plugin' );
Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__[/* __ */ "a"])( 'webpack.mangle.__', 'foo-plugin' );
(0,wp__WEBPACK_IMPORTED_MODULE_5__.__)("rspack.__", "foo-plugin");
wp__WEBPACK_IMPORTED_MODULE_5___default().__("rspack.default-import.__", "foo-plugin");
wp__WEBPACK_IMPORTED_MODULE_5__.__("rspack.default-star-import.__", "foo-plugin");
var import_wp = __require("wp");
var import_wp2 = __toESM(__require("wp"));
var wpStarImport = __toESM(__require("wp"));
console.log((0, import_wp.__)("esbuild.__", "foo-plugin"));
console.log(import_wp2.default.__("esbuild.default-import.__", "foo-plugin"));
console.log(wpStarImport.__("esbuild.default-star-import.__", "foo-plugin"));
Object(u.__)( 'minified.__', 'foo-plugin' );
Object(j._x)( 'minified._x', 'minified._x_context', 'foo-plugin' );
Expand Down Expand Up @@ -1918,6 +1929,30 @@ Feature: Generate a POT file of a WordPress project
"""
msgid "webpack.mangle.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "rspack.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "rspack.default-import.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "rspack.default-star-import.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "esbuild.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "esbuild.default-import.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "esbuild.default-star-import.__"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "minified.__"
Expand Down

0 comments on commit 373ec88

Please sign in to comment.