Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support array of formats in util.styleText #12082

Closed
wants to merge 4 commits into from

Conversation

malezjaa
Copy link

@malezjaa malezjaa commented Jun 23, 2024

What does this PR do?

This pr adds support for array of formats in util.styleText

console.log(
  util.styleText(["underline", "italic"], "Italic and underlined message")
);

console.log(
  util.styleText(["red", "green", "yellow"], "text") // yellow
);

Solves #11705

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

  • I included a test for the new code, or existing tests cover it
  • I ran my tests locally and they pass (bun-debug test test-file-name.test)

Copy link
Contributor

github-actions bot commented Jun 23, 2024

@malezjaa, your commit has failing tests :(

🐧💪 6 failing tests Linux AARCH64

  • test/bundler/bun-build-api.test.ts 6 failing
  • test/bundler/bundler_minify.test.ts 2 failing
  • test/cli/install/registry/bun-install-registry.test.ts SIGKILL
  • test/js/bun/jsc/bun-jsc.test.ts 1 failing
  • test/js/node/fs/cp.test.ts 1 failing
  • test/transpiler/transpiler.test.js 10 failing

🐧🖥 5 failing tests Linux x64 baseline

  • test/bundler/bun-build-api.test.ts 6 failing
  • test/bundler/bundler_minify.test.ts 2 failing
  • test/js/bun/jsc/bun-jsc.test.ts 1 failing
  • test/js/node/fs/cp.test.ts 1 failing
  • test/transpiler/transpiler.test.js 10 failing

🐧🖥 5 failing tests Linux x64

  • test/bundler/bun-build-api.test.ts 6 failing
  • test/bundler/bundler_minify.test.ts 2 failing
  • test/js/bun/jsc/bun-jsc.test.ts 1 failing
  • test/js/node/fs/cp.test.ts 1 failing
  • test/transpiler/transpiler.test.js 10 failing

View logs

@malezjaa malezjaa closed this Jun 29, 2024
@malezjaa malezjaa reopened this Jun 29, 2024
@malezjaa malezjaa closed this Aug 5, 2024
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.

1 participant