mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
Improve source file detection and tests
- Use SwiftPM-provided sourceFiles for filtering - Add Utils.swift with URL descendant check - Update example to use Views/ instead of Folder/ - Add test for non-included Swift file - Update .zed settings to disable VSCode CSS language server
This commit is contained in:
parent
cfb5d2a4a2
commit
8359d795eb
8 changed files with 68 additions and 9 deletions
|
|
@ -21,6 +21,10 @@ struct SwiftTailwindExampleTests {
|
|||
generatedCSS?.contains("bg-red-100") == true,
|
||||
"Arbitary value class used in Folder/Template.swift is generated."
|
||||
)
|
||||
#expect(
|
||||
generatedCSS?.contains("text-sm") == false,
|
||||
"Class used in other non-included Swift code is not generated."
|
||||
)
|
||||
#expect(
|
||||
generatedCSS?.contains("bg-blue-500") == false,
|
||||
"Class not used is not generated."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue