The problem of mixing absolute path and relative path in node.js?

  node.js, question

Doubt: Is the relative path and absolute path the same object? ?

The following is the code.

Animal class:

function Animal(name) {
 this.name = name;
 bracket
 Animal.prototype.say = function () {
 Console.log(this.name plus "say");
 };
 
 module.exports = Animal;

Cat class:

Inherited Animal
var Animal = require('./animal');
 function Cat(name) {
 Animal.call(this,name)
 bracket
 Cat.prototype = Object.create(Animal.prototype);
 Cat.prototype.constructor = Cat;
 
 module.exports = Cat;

When using relative paths:

var Animal = require('../test/animal');
 var Cat = require('../test/cat');
 var cat = new Cat("judy");
 console.log(cat instanceof Animal);  >>>>true

When using absolute paths:

var Animal = require('../test/animal');
 var Cat = require('/webproject/node/models/test/cat');
 var cat = new Cat("judy");
 console.log(cat instanceof Animal);  >>>>false

In both cases, Cat points to the same file, why is its instance different?

However, I tried yours. Are both true?