astro/packages/integrations/image/test
Valentin Bersier e4348a4eb4
@astrojs/image: add a background option/prop to replace the alpha layer (#4642)
* Added `background` option and prop.
This optional color specifies which background to use when removing the
alpha channel if the output format doesn't support transparency.

* Modified existing tests

* Fixed wrong dimensions in tests

* Fixing a few instances of jpeg vs jpg

* Added color checking

* working on the tests

* tests are now passing

* Adding tests

* Added tests for background color

* no need to test with subpath

* Added fixture

* Renamed test fixture for background-color

* skipping test until fixed

* Typo

* Working on tests

* tests are passing

* Updated readme and added changeset

* Updated lockfile

* Updated lockfile

* Updated lockfile

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-07 17:22:11 +00:00
..
fixtures @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
background-color-image-ssg.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
background-color-image-ssr.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
image-ssg.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
image-ssr-build.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
image-ssr-dev.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
no-alt-text-image-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-image-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
picture-ssg.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
picture-ssr-build.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
picture-ssr-dev.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
rotation.test.js refactor: Cleaning up all uses of hard-coded hashes in image tests (#4579) 2022-09-01 14:58:57 +00:00
sharp.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00
test-utils.js Adds an @astrojs/image integration for optimizing images (#3694) 2022-07-01 15:47:48 +00:00
with-mdx.test.js @astrojs/image: add a background option/prop to replace the alpha layer (#4642) 2022-09-07 17:22:11 +00:00