mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-23 09:04:37 +03:00
test: add descriptions for integration tests
This commit is contained in:
parent
fd0fa4da86
commit
dd889bc4f7
@ -1,3 +1,16 @@
|
|||||||
|
# test: node.js built binary
|
||||||
|
#
|
||||||
|
# Detecting regressions of #235.
|
||||||
|
#
|
||||||
|
# Node.js builder was crashing if a binary defined in package.json
|
||||||
|
# bin section refers to a file that does not exist before the build step.
|
||||||
|
#
|
||||||
|
# 1. "package.json".bin.main = "./main.js"
|
||||||
|
# 2. `main.js` does not exist, but is created during the build
|
||||||
|
# 3. the default build script "package.json".scripts.build creates `main.js`
|
||||||
|
# during the buildPhase
|
||||||
|
# 4. the binary is linked to the bin directory in the installPhase
|
||||||
|
#
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
dream2nix.url = "github:nix-community/dream2nix";
|
dream2nix.url = "github:nix-community/dream2nix";
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
# test: node.js direct dep priority over transitive dep
|
||||||
|
#
|
||||||
|
# Detecting regressions for #221.
|
||||||
|
#
|
||||||
|
# Node.js builder was linking the wrong version of a binary,
|
||||||
|
# if there was another dependency transitivelly depending on another version,
|
||||||
|
# this one would be resolved instead of the direct dependency.
|
||||||
|
#
|
||||||
|
# Dependencies: svgo@2, cssnano@4 (cssnano@4 -> svgo@1)
|
||||||
|
#
|
||||||
|
# 1. Dream2Nix normal build.
|
||||||
|
# 2. Get version of svgo in node.js path. (npm run get-version = svgo --version)
|
||||||
|
# 3. Check if this is the same version as the direct dependency.
|
||||||
|
#
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
dream2nix.url = "github:nix-community/dream2nix";
|
dream2nix.url = "github:nix-community/dream2nix";
|
||||||
|
Loading…
Reference in New Issue
Block a user