Skip to content

Conversation

omerfardemir
Copy link

just removed return statement in line 35.

return wxt.logger.warn(

Manual Testing

  1. have default icons in the public folder public/icon/*
  2. install auto icons
  3. add a icon to <src>/assets/icon.png
  4. run npm run dev

This PR closes #1592

@omerfardemir omerfardemir requested a review from Timeraa as a code owner April 25, 2025 23:29
Copy link

netlify bot commented Apr 25, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 1146ac1
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/688aa6e6ae1b280008b4951b
😎 Deploy Preview https://deploy-preview-1616--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Timeraa
Copy link
Member

Timeraa commented May 29, 2025

Could you add a test for this?

@omerfardemir omerfardemir requested a review from aklinker1 as a code owner May 31, 2025 21:42
@omerfardemir
Copy link
Author

I added tests and here is output:

✓ src/__test__/index.test.ts (9 tests) 23ms
   ✓ auto-icons module > options handling > should use default options when not provided 5ms
   ✓ auto-icons module > options handling > should merge custom options with defaults 1ms
   ✓ auto-icons module > error handling > should warn when disabled 4ms
   ✓ auto-icons module > error handling > should warn when base icon not found 1ms
   ✓ auto-icons module > manifest generation > should update manifest with icons 2ms
   ✓ auto-icons module > manifest generation > should warn when overwriting existing icons in manifest 1ms
   ✓ auto-icons module > icon generation > should generate icons with correct sizes 2ms
   ✓ auto-icons module > icon generation > should apply grayscale in development mode but not in production 1ms
   ✓ auto-icons module > public paths > should add icon paths to public paths 1ms

 Test Files  1 passed (1)
      Tests  9 passed (9)
   Start at  00:40:30
   Duration  630ms (transform 35ms, setup 0ms, collect 84ms, tests 23ms, environment 0ms, prepare 185ms)

@Timeraa
Copy link
Member

Timeraa commented Jun 1, 2025

Thank you, did I not add any tests to that module when I made it? Oopsies haha.

Looks all fine from me so @aklinker1 can merge when he approves of it

Copy link
Member

@aklinker1 aklinker1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm alive! Been busy with some other life stuff. Should be back on GitHub and discord soon.

@Timeraa
Copy link
Member

Timeraa commented Jun 1, 2025

I'm alive! Been busy with some other life stuff. Should be back on GitHub and discord soon.

No worries everyone gets through things like that in life sometimes! I'm currently going through a lot of it as well

@Timeraa Timeraa force-pushed the fix/icon-override branch from 2dabfec to 946f2f4 Compare July 30, 2025 22:08
Copy link

codecov bot commented Jul 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.20%. Comparing base (c8cd41a) to head (1146ac1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1616      +/-   ##
==========================================
+ Coverage   81.17%   81.20%   +0.03%     
==========================================
  Files         130      130              
  Lines        6649     6649              
  Branches     1091     1090       -1     
==========================================
+ Hits         5397     5399       +2     
+ Misses       1241     1239       -2     
  Partials       11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

pkg-pr-new bot commented Jul 30, 2025

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1616

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1616

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1616

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1616

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1616

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1616

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1616

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1616

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@1616

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1616

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1616

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1616

wxt

npm i https://pkg.pr.new/wxt@1616

commit: 93ef8ac

@Timeraa Timeraa requested a review from aklinker1 July 30, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto icons doesnt override default icons
3 participants