๐Ÿงช Test Results

93
Total Tests
93
Passed
0
Failed
0
Skipped
โœ… All tests passed!

Detailed Results

/test/e2e/routing.test.ts

โœ… 5 โŒ 0 โฑ๏ธ 0.00s
โœ… should have router methods available
Duration: 0.6254170000000272ms
What does this test verify?
Verifies that the router object has push, replace, and back methods.
โœ… should have route information available
Duration: 0.10195800000002464ms
What does this test verify?
Ensures that route information includes path, params, and query.
โœ… should have default route path
Duration: 0.08320800000001327ms
What does this test verify?
Tests that the default route path is set to '/'.
โœ… should have empty params by default
Duration: 0.20924999999999727ms
What does this test verify?
Verifies that route params are empty by default.
โœ… should have empty query by default
Duration: 0.09970799999996416ms
What does this test verify?
Verifies that route query is empty by default.

/test/e2e/runtime-config.test.ts

โœ… 4 โŒ 0 โฑ๏ธ 0.00s
โœ… should return runtime config object
Duration: 0.5617910000000279ms
What does this test verify?
Tests that useRuntimeConfig returns a defined configuration object.
โœ… should have public configuration
Duration: 0.09062499999998863ms
What does this test verify?
Verifies that the config has a public property with site settings.
โœ… should have correct site URL
Duration: 0.08762500000000273ms
What does this test verify?
Ensures the site URL is correctly set in the runtime configuration.
โœ… should have valid URL format
Duration: 0.09304099999997106ms
What does this test verify?
Validates that the site URL follows proper URL format.

/test/integration/state-management.test.ts

โœ… 15 โŒ 0 โฑ๏ธ 0.00s
โœ… should maintain independent state for each composable
Duration: 1.9540419999999585ms
What does this test verify?
Tests that multiple composables maintain separate, independent state.
โœ… should allow independent updates without affecting other states
Duration: 0.11929100000003245ms
What does this test verify?
Ensures updates to one composable don't affect others.
โœ… should handle rapid state changes
Duration: 0.1450420000000463ms
What does this test verify?
Tests performance and stability under rapid state mutations.
โœ… should handle concurrent toggle operations
Duration: 0.13866600000000062ms
What does this test verify?
Tests managing multiple toggle states simultaneously.
โœ… should persist counter state across multiple calls
Duration: 0.0831670000000031ms
What does this test verify?
Verifies counter state persistence across component lifecycle.
โœ… should persist color state across multiple calls
Duration: 0.067875000000015ms
What does this test verify?
Verifies color state persistence across component lifecycle.
โœ… should persist toggle states across multiple calls
Duration: 0.09066699999999628ms
What does this test verify?
Verifies toggle states persistence across component lifecycle.
โœ… should handle state reset scenario
Duration: 0.06545899999997573ms
What does this test verify?
Tests resetting all states back to defaults.
โœ… should handle state updates in sequence
Duration: 0.11687499999999318ms
What does this test verify?
Tests sequential state updates.
โœ… should handle conditional state updates
Duration: 0.06299999999998818ms
What does this test verify?
Tests state updates based on conditional logic.
โœ… should handle state-dependent logic
Duration: 0.0544999999999618ms
What does this test verify?
Tests logic that depends on the current state values.
โœ… should handle boundary values for counter
Duration: 0.055499999999995ms
What does this test verify?
Tests extreme numeric values (MAX_SAFE_INTEGER, MIN_SAFE_INTEGER).
โœ… should handle special string values for color
Duration: 0.07408400000002757ms
What does this test verify?
Tests special CSS color values like 'transparent', 'inherit'.
โœ… should handle rapid toggle operations
Duration: 0.04520800000000236ms
What does this test verify?
Tests rapid toggling performance and consistency.
โœ… should maintain type consistency
Duration: 0.07841600000000426ms
What does this test verify?
Ensures state types remain consistent throughout operations.

/test/unit/states.test.ts

โœ… 27 โŒ 0 โฑ๏ธ 0.00s
โœ… should initialize with default value of 0
Duration: 0.9787089999999807ms
What does this test verify?
Verifies that the useCounter composable initializes with a default value of 0.
โœ… should be a reactive ref
Duration: 0.38675000000000637ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โœ… should persist state across multiple calls
Duration: 0.06558300000000372ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โœ… should handle negative values
Duration: 0.0610409999999888ms
What does this test verify?
Tests that the counter can store and retrieve negative numbers correctly.
โœ… should handle large numbers
Duration: 0.10308300000002646ms
What does this test verify?
Ensures the counter can handle large numeric values without overflow or precision loss.
โœ… should increment correctly
Duration: 0.08495799999997189ms
What does this test verify?
Verifies that the counter can be incremented using the ++ operator.
โœ… should initialize with default value of 'pink'
Duration: 0.06229200000001356ms
What does this test verify?
Verifies that the useColor composable initializes with a default value of 'pink'.
โœ… should be a reactive ref
Duration: 0.12091699999996308ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โœ… should persist state across multiple calls
Duration: 0.17225000000001955ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โœ… should handle hex color values
Duration: 0.10470800000001645ms
What does this test verify?
Tests that the color state can store hex color format (#FF5733).
โœ… should handle rgb color values
Duration: 0.04645800000002964ms
What does this test verify?
Tests that the color state can store RGB color format (rgb(255, 0, 0)).
โœ… should handle empty string
Duration: 0.039750000000026375ms
What does this test verify?
Ensures the color state can handle edge cases like empty strings.
โœ… should initialize with default value of false
Duration: 0.04487499999999045ms
What does this test verify?
Verifies that toggle composables (useNavToggle, useTranslateToggle) initialize with a default value of false.
โœ… should be a reactive ref
Duration: 0.054791000000022905ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โœ… should persist state across multiple calls
Duration: 0.038334000000020296ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โœ… should toggle between true and false
Duration: 0.09441700000002129ms
What does this test verify?
Tests the ability to toggle the navigation state between open and closed.
โœ… should support boolean negation
Duration: 0.05029199999995626ms
What does this test verify?
Verifies that the toggle can be flipped using boolean negation operator.
โœ… should initialize with the provided value
Duration: 0.045000000000015916ms
What does this test verify?
Tests that useSimpleCounter accepts and uses the provided initial value.
โœ… should handle zero as initial value
Duration: 0.03633299999995643ms
What does this test verify?
Ensures useSimpleCounter works correctly when initialized with zero.
โœ… should handle negative values
Duration: 0.03558299999997416ms
What does this test verify?
Tests that the counter can store and retrieve negative numbers correctly.
โœ… should be reactive
Duration: 0.051333999999997104ms
What does this test verify?
Confirms that useSimpleCounter returns a reactive reference.
โœ… should handle decimal values
Duration: 0.037041999999985364ms
What does this test verify?
Tests that the simple counter can handle floating-point numbers.
โœ… should initialize with default value of false
Duration: 0.04308399999996482ms
What does this test verify?
Verifies that toggle composables (useNavToggle, useTranslateToggle) initialize with a default value of false.
โœ… should be a reactive ref
Duration: 0.04929199999997991ms
What does this test verify?
Ensures that state composables return reactive references that can be used in Vue components.
โœ… should persist state across multiple calls
Duration: 0.037082999999995536ms
What does this test verify?
Confirms that state is maintained across multiple composable invocations, simulating component lifecycle.
โœ… should toggle between states
Duration: 0.04470800000001418ms
What does this test verify?
Tests the ability to toggle the translation feature on and off.
โœ… should work independently from navToggle
Duration: 0.04579099999995151ms
What does this test verify?
Ensures that translation toggle state is independent from navigation toggle state.

/test/unit/useCurrentPage.test.ts

โœ… 25 โŒ 0 โฑ๏ธ 0.01s
โœ… should return an object with slug and msg properties
Duration: 0.816332999999986ms
What does this test verify?
Verifies that useCurrentPage returns an object containing both slug and msg properties as expected.
โœ… should log to console when called
Duration: 0.27912500000002183ms
What does this test verify?
Ensures that useCurrentPage logs a message to the console when invoked, which may be used for debugging purposes.
โœ… should return consistent data structure
Duration: 0.2874999999999659ms
What does this test verify?
Verifies that useCurrentPage returns the same structure on every call.
โœ… should return the provided slug
Duration: 0.14008300000000418ms
What does this test verify?
Tests that the function returns the exact slug value that was passed as input.
โœ… should have slug as a string
Duration: 0.0685420000000363ms
What does this test verify?
Tests that the slug property is of type string.
โœ… should have msg as a string
Duration: 0.06983299999996007ms
What does this test verify?
Tests that the msg property is of type string.
โœ… should have expected message content
Duration: 0.051791999999977634ms
What does this test verify?
Verifies that the msg property contains the expected greeting message.
โœ… should return the same structure on multiple calls
Duration: 0.5017500000000155ms
What does this test verify?
Ensures consistency across multiple invocations of useCurrentPage.
โœ… should not return undefined or null
Duration: 0.17799999999999727ms
What does this test verify?
Validates that useCurrentPage always returns a valid object.
โœ… should be an object
Duration: 0.059916999999984455ms
What does this test verify?
Confirms that the return value is an object type.
โœ… should log with specific format
Duration: 0.3012499999999818ms
What does this test verify?
Verifies that console logging follows a specific format ('in composable function').
โœ… should not throw errors during execution
Duration: 0.2681249999999977ms
What does this test verify?
Ensures useCurrentPage executes without throwing errors.
โœ… should handle multiple rapid calls
Duration: 3.26724999999999ms
What does this test verify?
Tests resilience under rapid successive calls with different slugs.
โœ… should maintain data integrity
Duration: 0.114750000000015ms
What does this test verify?
Ensures that original data is not mutated during operations.
โœ… should handle empty slug
Duration: 0.05750000000000455ms
What does this test verify?
Tests that the composable can handle empty string slugs.
โœ… should handle special characters in slug
Duration: 0.09629200000000537ms
What does this test verify?
Tests handling of special characters and symbols in slug values.
โœ… should handle long slug values
Duration: 0.05462499999998727ms
What does this test verify?
Tests performance and stability with very long slug strings.
โœ… should work alongside other composables
Duration: 0.10562500000003183ms
What does this test verify?
Tests integration with other composables in the same context.
โœ… should return serializable data
Duration: 0.08862499999997908ms
What does this test verify?
Verifies that the returned data can be serialized to JSON.
โœ… should handle object spreading
Duration: 0.04470899999995481ms
What does this test verify?
Tests that the returned object can be spread using JavaScript spread operator.
โœ… should handle destructuring
Duration: 0.04150000000004184ms
What does this test verify?
Tests that the returned object can be destructured properly.
โœ… should handle numeric slug values
Duration: 0.07125000000002046ms
What does this test verify?
Tests handling of slugs that contain only numbers.
โœ… should handle slug with hyphens
Duration: 0.047916999999984ms
What does this test verify?
Tests proper handling of hyphenated slug values.
โœ… should handle slug with underscores
Duration: 0.0404999999999518ms
What does this test verify?
Tests proper handling of underscored slug values.
โœ… should handle slug with mixed case
Duration: 0.03704200000004221ms
What does this test verify?
Tests proper handling of mixed-case slug values.

/test/unit/utils.test.ts

โœ… 17 โŒ 0 โฑ๏ธ 0.01s
โœ… should convert string to slug format
Duration: 0.676667000000009ms
What does this test verify?
Tests string-to-slug conversion for URL-friendly strings.
โœ… should capitalize first letter
Duration: 0.38162499999998545ms
What does this test verify?
Tests capitalization of the first letter in a string.
โœ… should truncate long strings
Duration: 0.375583000000006ms
What does this test verify?
Tests string truncation with ellipsis for long text.
โœ… should filter undefined values
Duration: 0.3660419999999931ms
What does this test verify?
Tests removal of undefined values from arrays.
โœ… should remove duplicates from array
Duration: 0.20520800000002737ms
What does this test verify?
Tests deduplication of array elements.
โœ… should chunk array into smaller arrays
Duration: 0.11779200000000856ms
What does this test verify?
Tests splitting arrays into fixed-size chunks.
โœ… should deep clone objects
Duration: 0.07299999999997908ms
What does this test verify?
Tests deep cloning of nested objects to avoid reference issues.
โœ… should check if object is empty
Duration: 0.06187499999998636ms
What does this test verify?
Tests detection of empty objects.
โœ… should merge objects
Duration: 0.15774999999996453ms
What does this test verify?
Tests merging of two objects with property override.
โœ… should format date to string
Duration: 0.2823750000000018ms
What does this test verify?
Tests date-to-string formatting.
โœ… should check if date is valid
Duration: 0.07183300000002646ms
What does this test verify?
Tests validation of Date objects.
โœ… should validate URL format
Duration: 0.13420899999999847ms
What does this test verify?
Tests URL validation using URL constructor.
โœ… should extract domain from URL
Duration: 0.23279100000002018ms
What does this test verify?
Tests extraction of hostname from URL string.
โœ… should build query string from object
Duration: 0.27995799999996507ms
What does this test verify?
Tests building URL query strings from objects.
โœ… should format number with commas
Duration: 9.42954199999997ms
What does this test verify?
Tests numeric formatting with thousands separators.
โœ… should clamp number between min and max
Duration: 0.1700829999999769ms
What does this test verify?
Tests clamping numbers to a specified range.
โœ… should check if number is in range
Duration: 0.2579170000000204ms
What does this test verify?
Tests whether a number falls within a specified range.